Changeset 3678 for trunk/src/kernel32/wprocess.cpp
- Timestamp:
- Jun 8, 2000, 8:08:58 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/wprocess.cpp
r3588 r3678 1 /* $Id: wprocess.cpp,v 1.8 1 2000-05-22 19:08:01sandervl Exp $ */1 /* $Id: wprocess.cpp,v 1.82 2000-06-08 18:08:58 sandervl Exp $ */ 2 2 3 3 /* … … 661 661 BOOL fPath; /* Flags which is set if the */ 662 662 /* lpszLibFile contains a path. */ 663 BOOLfPE; /* isPEImage return value. */663 ULONG fPE; /* isPEImage return value. */ 664 664 665 665 /** @sketch … … 802 802 */ 803 803 fPE = Win32ImageBase::isPEImage(szModname); 804 if (fPE)804 if(fPE == ERROR_SUCCESS) 805 805 { 806 806 Win32PeLdrDll * peldrDll; … … 887 887 else 888 888 { 889 dprintf(("KERNEL32: LoadLibraryExA(%s, 0x%x, 0x%x) library w ere found (%s) but it's not loadable!",890 lpszLibFile, hFile, dwFlags, szModname ));891 SetLastError( ERROR_INVALID_EXE_SIGNATURE);889 dprintf(("KERNEL32: LoadLibraryExA(%s, 0x%x, 0x%x) library wasn't found (%s) or isn't loadable; err %x", 890 lpszLibFile, hFile, dwFlags, szModname, fPE)); 891 SetLastError(fPE); 892 892 } 893 893 … … 1370 1370 if(winimage == NULL) 1371 1371 { 1372 char modname[CCHMAXPATH];1372 char modname[CCHMAXPATH]; 1373 1373 1374 1374 strcpy(modname, lpszModName); … … 1376 1376 Win32DllBase::renameDll(modname); 1377 1377 1378 if(Win32ImageBase::isPEImage(modname) == FALSE)1379 1378 if(Win32ImageBase::isPEImage(modname) != ERROR_SUCCESS) 1379 { 1380 1380 HINSTANCE hInstance; 1381 1381 … … 1431 1431 Win32DllBase::renameDll(modname); 1432 1432 1433 if(Win32ImageBase::isPEImage(modname) == FALSE)1434 1433 if(Win32ImageBase::isPEImage(modname) != ERROR_SUCCESS) 1434 { 1435 1435 HINSTANCE hInstance; 1436 1436
Note:
See TracChangeset
for help on using the changeset viewer.