Changeset 108 for trunk/src/kernel32/wprocess.cpp
- Timestamp:
- Jun 15, 1999, 7:57:34 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/wprocess.cpp
r99 r108 1 /* $Id: wprocess.cpp,v 1. 4 1999-06-10 19:09:05phaller Exp $ */1 /* $Id: wprocess.cpp,v 1.5 1999-06-15 17:57:34 phaller Exp $ */ 2 2 3 3 /* … … 204 204 /******************************************************************************/ 205 205 /******************************************************************************/ 206 HINSTANCE WIN32APILoadLibraryA(LPCTSTR lpszLibFile)206 static HINSTANCE iLoadLibraryA(LPCTSTR lpszLibFile) 207 207 { 208 208 HINSTANCE hDll; … … 210 210 211 211 hDll = O32_LoadLibrary(lpszLibFile); 212 dprintf(("KERNEL32: LoadLibraryA %s returned %X (%d)\n", lpszLibFile, hDll, GetLastError())); 213 if(hDll) { 212 dprintf(("KERNEL32: iLoadLibraryA %s returned %X (%d)\n", 213 lpszLibFile, 214 hDll, 215 GetLastError())); 216 if(hDll) 217 { 214 218 return hDll; //converted dll or win32k took care of it 215 219 } … … 239 243 return module->getInstanceHandle(); 240 244 } 241 else return(0); 242 } 245 else 246 return(0); 247 } 248 249 250 HINSTANCE WIN32API LoadLibraryA(LPCTSTR lpszLibFile) 251 { 252 HINSTANCE hDll; 253 254 dprintf(("KERNEL32: LoadLibraryA(%s)\n", 255 lpszLibFile)); 256 257 hDll = iLoadLibraryA(lpszLibFile); 258 if (hDll == 0) 259 { 260 PSZ pszName; 261 262 // remove path from the image name 263 pszName = strrchr((PSZ)lpszLibFile, 264 '\\'); 265 if (pszName != NULL) 266 { 267 pszName++; // skip backslash 268 269 // now try again without fully qualified path 270 hDll = iLoadLibraryA(pszName); 271 } 272 } 273 274 return hDll; 275 } 276 277 243 278 //****************************************************************************** 244 279 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.