Changeset 6185 for trunk/src/peldr/pe.cpp
- Timestamp:
- Jul 6, 2001, 3:47:40 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/peldr/pe.cpp
r5956 r6185 1 /* $Id: pe.cpp,v 1.2 8 2001-06-10 22:00:04sandervl Exp $ */1 /* $Id: pe.cpp,v 1.29 2001-07-06 13:47:40 sandervl Exp $ */ 2 2 3 3 /* … … 37 37 char szErrorTitle[] = "Odin"; 38 38 char szLoadErrorMsg[] = "Can't load executable"; 39 char szFileNotFound[] = "File not found."; 39 40 char szFileErrorMsg[] = "File IO error"; 40 41 char szPEErrorMsg[] = "Not a valid win32 exe. (perhaps 16 bits windows)"; … … 131 132 } 132 133 } 134 if(nrTries && *p == 0) { 135 pszErrorMsg = szFileNotFound; 136 goto failerror; 137 } 133 138 } 134 139 *p = 0; … … 164 169 } 165 170 else {//should never happen! 166 filenotfound:167 171 pszErrorMsg = szDosInfoBlocks; 168 172 goto failerror; … … 173 177 ULONG idSession; 174 178 PID pid; 179 175 180 sdata.Length = sizeof(sdata); 176 181 sdata.PgmName = "w16odin.exe"; … … 179 184 strcat(fullpath, win32cmdline); 180 185 sdata.PgmInputs = fullpath; 186 sdata.FgBg = SSF_FGBG_FORE; 181 187 sdata.SessionType = SSF_TYPE_WINDOWEDVDM; 182 188 rc = DosStartSession(&sdata, &idSession, &pid);
Note:
See TracChangeset
for help on using the changeset viewer.