- Timestamp:
- Mar 9, 2000, 8:01:55 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/peldr/pe.cpp
r2572 r3058 1 /* $Id: pe.cpp,v 1.1 3 2000-01-30 14:48:51sandervl Exp $ */1 /* $Id: pe.cpp,v 1.14 2000-03-09 19:01:55 sandervl Exp $ */ 2 2 3 3 /* … … 25 25 #include <win32type.h> 26 26 #include <misc.h> 27 #include <winexepeldr.h>28 27 #include <wprocess.h> 28 #include <win\peexe.h> 29 29 #include "pe.h" 30 30 … … 37 37 char szExeErrorMsg[] = "File isn't an executable"; 38 38 char szInteralErrorMsg[]= "Internal Error"; 39 char szNoKernel32Msg[] = "Can't load/find kernel32.dll ";39 char szNoKernel32Msg[] = "Can't load/find kernel32.dll (rc=%d)"; 40 40 41 41 char fullpath[CCHMAXPATH]; … … 61 61 KRNL32EXCEPTPROC Krnl32UnsetExceptionHandler = 0; 62 62 63 //should be the same as in ..\kernel32\winexepeldr.h 64 typedef BOOL (* WIN32API WIN32CTOR)(char *, ULONG); 65 63 66 WIN32CTOR CreateWin32Exe = 0; 64 67 … … 102 105 rc = DosLoadModule(exeName, sizeof(exeName), "KERNEL32.DLL", &hmodKernel32); 103 106 if(rc) { 104 MyWinMessageBox(HWND_DESKTOP, NULL, szNoKernel32Msg, szErrorTitle, 0, MB_OK | MB_ERROR | MB_MOVEABLE); 107 sprintf(exeName, szNoKernel32Msg, rc); 108 MyWinMessageBox(HWND_DESKTOP, NULL, exeName, szErrorTitle, 0, MB_OK | MB_ERROR | MB_MOVEABLE); 105 109 goto fail; 106 110 }
Note:
See TracChangeset
for help on using the changeset viewer.