Changeset 1369 for trunk/dll/systemf.c


Ignore:
Timestamp:
Jan 3, 2009, 7:43:34 PM (17 years ago)
Author:
Gregg Young
Message:

Add check for p-rotectonly system to gray out dos/win commandline choices etc. Ticket 325 It also fixes problem with some drives not being scanned on startup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/systemf.c

    r1348 r1369  
    674674  BOOL useTermQ = FALSE;
    675675  char szTempdir[CCHMAXPATH];
     676  BOOL fNoErrorMsg = FALSE;
    676677
    677678  typedef struct {
     
    728729      ; // loop
    729730  }
     731
     732  if (!stricmp(pszCallingFile, "init.c"))
     733    fNoErrorMsg = TRUE;
    730734
    731735  if (!*pszPgm) {
     
    872876        if (pszDirectory && *pszDirectory)
    873877          switch_to(szSavedir);
    874         if (ret) {
     878        if (ret && !fNoErrorMsg) {
    875879          Dos_Error(MB_ENTER,ret,hwnd,pszSrcFile,__LINE__,
    876880                    GetPString(IDS_DOSEXECPGMFAILEDTEXT), pszPgm,
     
    11301134
    11311135      if (ret && ret != ERROR_SMG_START_IN_BACKGROUND) {
     1136        if (!fNoErrorMsg)
    11321137        Dos_Error(MB_CANCEL,ret,hwnd,pszSrcFile,__LINE__,
    11331138                  GetPString(IDS_DOSSTARTSESSIONFAILEDTEXT),pszPgm,pszArgs,
Note: See TracChangeset for help on using the changeset viewer.