Changeset 1720 for trunk/src/kernel32/winimagepeldr.cpp
- Timestamp:
- Nov 13, 1999, 4:41:11 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/winimagepeldr.cpp
r1708 r1720 1 /* $Id: winimagepeldr.cpp,v 1.1 2 1999-11-11 19:10:09sandervl Exp $ */1 /* $Id: winimagepeldr.cpp,v 1.13 1999-11-13 15:41:11 sandervl Exp $ */ 2 2 3 3 /* … … 53 53 char szExeErrorMsg[] = "File isn't an executable"; 54 54 char szInteralErrorMsg[]= "Internal Error"; 55 char szErrorModule[128] = ""; 55 56 56 57 #ifndef max … … 136 137 BOOL Win32PeLdrImage::init(ULONG reservedMem) 137 138 { 138 char szErrorMsg[64];139 139 LPVOID win32file = NULL; 140 140 ULONG filesize, ulRead; … … 148 148 149 149 if (fImgMapping == -1) { 150 sprintf(szErrorMsg, "Unable to open %32s\n", szFileName); 151 WinMessageBox(HWND_DESKTOP, HWND_DESKTOP, szErrorMsg, szErrorTitle, 0, MB_OK | MB_ERROR | MB_MOVEABLE); 150 strcpy(szErrorModule, OSLibStripPath(szFileName)); 152 151 goto failure; 153 152 } … … 1089 1088 if(rc) { 1090 1089 dprintf(("DosLoadModule returned %X for %s\n", rc, szModuleFailure)); 1090 sprintf(szErrorModule, "%s.DLL", szModuleFailure); 1091 1091 errorState = rc; 1092 1092 return(FALSE); … … 1113 1113 if(WinDll->init(0) == FALSE) { 1114 1114 fout << "Internal WinDll error " << WinDll->getError() << endl; 1115 strcpy(szErrorModule, OSLibStripPath(modname)); 1115 1116 return(FALSE); 1116 1117 }
Note:
See TracChangeset
for help on using the changeset viewer.