Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/init.c
r1713 r1720 117 117 09 Feb 14 GKY Modified wipeallf to allow suppression of the readonly warning on delete 118 118 of temporary files 119 16 Feb 14 GKY Add "#" command line switch to workaround problem with blank command shell 120 started from fm2 after fm2 has been started with stdout and stderr 121 redirected to a file. 119 122 120 123 ***********************************************************************/ … … 235 238 BOOL fReminimize; 236 239 BOOL fWantFirstTimeInit; 240 BOOL fUseShellEnv; 237 241 //BOOL fDrivetoSkip[26]; 238 242 HPOINTER hptrApp; … … 1159 1163 fAutoAddDirs = fUseNewViewer = fDataToFore = fDataShowDrives = fDataMin = 1160 1164 fSplitStatus = fDragndropDlg = fQuickArcFind = fKeepCmdLine = 1161 fMoreButtons = fDrivebar = fCollapseFirst = fSwitchTree = fWarnReadOnly =1165 fMoreButtons = fDrivebar = fCollapseFirst = fSwitchTree = 1162 1166 fSwitchTreeExpand = fNoSearch = fCustomFileDlg = fOtherHelp = 1163 1167 fSaveMiniCmds = fUserComboBox = fFM2Deletes = fConfirmTarget = … … 1684 1688 strcpy(profile, &argv[x][1]); 1685 1689 } 1690 if (*argv[x] == '#' && !argv[x][1]) 1691 fUseShellEnv = TRUE; 1686 1692 } 1687 1693 -
trunk/dll/init.h
r1673 r1720 33 33 04 Aug 12 GKY Changes to allow copy and move over readonly files with a warning dialog; also added a warning dialog 34 34 for delete of readonly files 35 16 Feb 14 GKY Add "#" command line switch to workaround problem with blank command shell 36 started from fm2 after fm2 has been started with stdout and stderr 37 redirected to a file. 35 38 36 39 ***********************************************************************/ … … 203 206 extern BOOL fReminimize; 204 207 extern BOOL fWantFirstTimeInit; 208 extern BOOL fUseShellEnv; 205 209 extern HPOINTER hptrApp; 206 210 extern HPOINTER hptrArc; -
trunk/dll/systemf.c
r1673 r1720 39 39 26 Aug 11 GKY Add a low mem version of xDosAlloc* wrappers; move error checking into all the 40 40 xDosAlloc* wrappers. 41 16 Feb 14 GKY Add "#" command line switch to workaround problem with blank command shell 42 started from fm2 after fm2 has been started with stdout and stderr 43 redirected to a file. 41 44 42 45 ***********************************************************************/ … … 1190 1193 } 1191 1194 sdata.Environment = (PBYTE)pszEnvironment; 1192 sdata.InheritOpt = SSF_INHERTOPT_PARENT; 1195 if (fUseShellEnv && (!strcmp(GetCmdSpec(TRUE), pszPgm) || 1196 !strcmp(GetCmdSpec(FALSE), pszPgm))) 1197 sdata.InheritOpt = SSF_INHERTOPT_SHELL; 1198 else 1199 sdata.InheritOpt = SSF_INHERTOPT_PARENT; 1193 1200 sdata.SessionType = (USHORT) ulAppType; 1194 1201 sdata.ObjectBuffer = szObject;
Note:
See TracChangeset
for help on using the changeset viewer.