Changeset 21916 for trunk/src/peldr/pe.cpp
- Timestamp:
- Dec 18, 2011, 10:28:22 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 bin 2 Makefile.inc 1 env.cmd 2 LocalConfig.kmk
-
-
Property svn:mergeinfo
set to
/branches/gcc-kmk merged eligible
- Property svn:ignore
-
trunk/src/peldr/pe.cpp
r21580 r21916 7 7 * 8 8 * Command line options: 9 * /OPT:[x1=y,x2=z,..] 9 * /OPT:[x1=y,x2=z,..] 10 10 * x = CURDIR -> set current directory to y 11 11 * (not other options available at this time) … … 31 31 #include <misc.h> 32 32 #include <wprocess.h> 33 #include <win \peexe.h>33 #include <win/peexe.h> 34 34 #include <odinpe.h> 35 35 #include "pe.h" … … 100 100 int nrTries = 1; 101 101 102 if(DosGetInfoBlocks(&ptib, &ppib) == 0) 102 if(DosGetInfoBlocks(&ptib, &ppib) == 0) 103 103 { 104 104 char *pszTemp; … … 137 137 else _interrupt(3); //should not happen! 138 138 #endif 139 } 139 } 140 140 while(*cmdline == ' ') cmdline++; //skip leading space 141 141 if(*cmdline == '"') { … … 196 196 strcat(exeShortName, ext); 197 197 198 if ( strlen(fullpath) == 0 ) 198 if ( strlen(fullpath) == 0 ) 199 199 { 200 200 char newExeName[CCHMAXPATH]; … … 205 205 , newExeName /* Result of the search */ 206 206 , sizeof(newExeName) /* Length of search buffer */ 207 ) == NO_ERROR) 207 ) == NO_ERROR) 208 208 { 209 209 strcpy(exeName, newExeName); … … 212 212 213 213 FILESTATUS3 fstat3; 214 if(DosQueryPathInfo(exeName, FIL_STANDARD, (PVOID)&fstat3, sizeof(fstat3))) 214 if(DosQueryPathInfo(exeName, FIL_STANDARD, (PVOID)&fstat3, sizeof(fstat3))) 215 215 { 216 216 nrTries++; … … 236 236 237 237 sdata.Length = sizeof(sdata); 238 sdata.PgmName = "w16odin.exe";238 sdata.PgmName = (PSZ)"w16odin.exe"; 239 239 strcpy(fullpath, exeName); 240 240 strcat(fullpath, " "); … … 257 257 //switch process type to PM so the command line app can create PM 258 258 //windows 259 ppib->pib_ultype = 3; 259 ppib->pib_ultype = 3; 260 260 } 261 261 #endif … … 272 272 273 273 hmq = MyWinCreateMsgQueue(hab, 0); 274 274 275 275 if(argc < 2) { 276 276 MyWinMessageBox(HWND_DESKTOP, NULL, INFO_BANNER, szErrorTitle, 0, MB_OK | MB_ERROR | MB_MOVEABLE); … … 292 292 fVioConsole = FALSE; 293 293 #endif 294 rc = CreateWin32Exe(exeName, win32cmdline, peoptions, reservedMemory, 0, 294 rc = CreateWin32Exe(exeName, win32cmdline, peoptions, reservedMemory, 0, 295 295 fConsoleApp, fVioConsole, errorMod, sizeof(errorMod)); 296 296 if(rc != LDRERROR_SUCCESS) … … 305 305 sprintf(pszErrorMsg, szCPUErrorMsg, exeName); 306 306 break; 307 case LDRERROR_FILE_SYSTEM: 307 case LDRERROR_FILE_SYSTEM: 308 308 sprintf(szErrorMsg, szExeErrorMsg, exeName); 309 309 break;
Note:
See TracChangeset
for help on using the changeset viewer.