Changeset 622 for trunk/src/kernel32/wprocess.cpp
- Timestamp:
- Aug 22, 1999, 4:25:13 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/wprocess.cpp
r617 r622 1 /* $Id: wprocess.cpp,v 1.2 4 1999-08-22 11:11:11sandervl Exp $ */1 /* $Id: wprocess.cpp,v 1.25 1999-08-22 14:24:35 sandervl Exp $ */ 2 2 3 3 /* … … 369 369 static HINSTANCE iLoadLibraryA(LPCTSTR lpszLibFile) 370 370 { 371 char modname[CCHMAXPATH]; 371 372 HINSTANCE hDll; 372 373 Win32Dll *module; … … 382 383 } 383 384 384 if(Win32Image::isPEImage((char *)lpszLibFile)) { 385 module = Win32Dll::findModule((char *)lpszLibFile); 385 strcpy(modname, lpszLibFile); 386 strupr(modname); 387 if(!strstr(modname, ".DLL")) { 388 strcat(modname,".DLL"); 389 } 390 391 if(Win32Image::isPEImage((char *)modname)) { 392 module = Win32Dll::findModule((char *)modname); 386 393 if(module) {//don't load it again 387 394 module->AddRef(); … … 389 396 } 390 397 391 module = new Win32Dll((char *) lpszLibFile);398 module = new Win32Dll((char *)modname); 392 399 if(module == NULL) 393 400 return(0);
Note:
See TracChangeset
for help on using the changeset viewer.