Changeset 3993 for trunk/src/kernel32/initterm.cpp
- Timestamp:
- Aug 11, 2000, 12:56:27 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/initterm.cpp
r3740 r3993 1 /* $Id: initterm.cpp,v 1.4 3 2000-06-21 20:51:52sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.44 2000-08-11 10:56:16 sandervl Exp $ */ 2 2 3 3 /* … … 81 81 int loadNr = 0; 82 82 char kernel32Path[CCHMAXPATH] = ""; 83 static HMODULE dllHandle = 0; 83 84 84 85 /****************************************************************************/ … … 128 129 129 130 PROFILE_LoadOdinIni(); 130 if(RegisterLxDll(hModule, 0, (PVOID)&_Resource_PEResTab) == FALSE) 131 dllHandle = RegisterLxDll(hModule, 0, (PVOID)&_Resource_PEResTab); 132 if(dllHandle == 0) 131 133 return 0UL; 132 134 133 135 //SvL: Kernel32 is a special case; pe.exe loads it, so increase 134 136 // the reference count here 135 Win32DllBase *module = Win32DllBase::findModule( hModule);137 Win32DllBase *module = Win32DllBase::findModule(dllHandle); 136 138 if(module) { 137 139 module->AddRef(); … … 178 180 } 179 181 case 1 : 180 UnregisterLxDll(hModule); 182 if(dllHandle) { 183 UnregisterLxDll(dllHandle); 184 } 181 185 break; 182 186 default :
Note:
See TracChangeset
for help on using the changeset viewer.