Changeset 4029 for trunk/src/kernel32/wprocess.cpp
- Timestamp:
- Aug 17, 2000, 8:22:18 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/wprocess.cpp
r3995 r4029 1 /* $Id: wprocess.cpp,v 1.8 7 2000-08-11 18:42:55sandervl Exp $ */1 /* $Id: wprocess.cpp,v 1.88 2000-08-17 18:22:18 sandervl Exp $ */ 2 2 3 3 /* … … 756 756 } 757 757 758 //test if dll is in PE or LX format 759 fPE = Win32ImageBase::isPEImage(szModname); 758 760 759 761 /** @sketch 760 * IF dwFlags == 0 THEN762 * IF dwFlags == 0 && (!fPeLoader || !fPE) THEN 761 763 * Try load the executable using LoadLibrary 762 764 * IF successfully loaded THEN … … 770 772 * Endif 771 773 */ 772 if (dwFlags == 0) 774 //only call Open32 if dwFlags == 0 and (LX binary or win32k process) 775 if(dwFlags == 0 && (!fPeLoader || fPE != ERROR_SUCCESS)) 773 776 { 774 777 hDll = O32_LoadLibrary(szModname); … … 816 819 * return hDll. 817 820 */ 818 fPE = Win32ImageBase::isPEImage(szModname);819 821 if(fPE == ERROR_SUCCESS) 820 822 { … … 1138 1140 HANDLE WIN32API GetModuleHandleA(LPCTSTR lpszModule) 1139 1141 { 1140 HANDLE hMod ;1142 HANDLE hMod = 0; 1141 1143 Win32DllBase *windll; 1142 1144 char szModule[CCHMAXPATH];
Note:
See TracChangeset
for help on using the changeset viewer.