Changeset 3059 for trunk/src/kernel32/winimagepeldr.cpp
- Timestamp:
- Mar 9, 2000, 8:03:23 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/winimagepeldr.cpp
r3005 r3059 1 /* $Id: winimagepeldr.cpp,v 1.3 4 2000-03-04 19:52:36sandervl Exp $ */1 /* $Id: winimagepeldr.cpp,v 1.35 2000-03-09 19:03:22 sandervl Exp $ */ 2 2 3 3 /* … … 37 37 #include <misc.h> 38 38 #include <win32api.h> 39 #include <winimagebase.h>40 #include <winimagepeldr.h>41 #include <windllpeldr.h>39 #include "winimagebase.h" 40 #include "winimagepeldr.h" 41 #include "windllpeldr.h" 42 42 #include <pefile.h> 43 43 #include <unicode.h> … … 1389 1389 return(FALSE); 1390 1390 } 1391 //Mark this dll as loaded by DosLoadModule 1392 WinDll->setLoadLibrary(); 1393 WinDll->AddRef(); 1391 1394 } 1392 1395 else { … … 1406 1409 return(FALSE); 1407 1410 } 1411 #ifdef DEBUG 1412 WinDll->AddRef(getModuleName()); 1413 #else 1414 WinDll->AddRef(); 1415 #endif 1408 1416 if(WinDll->attachProcess() == FALSE) { 1409 1417 dprintf((LOG, "attachProcess failed!" )); 1418 delete WinDll; 1410 1419 errorState = ERROR_INTERNAL; 1411 1420 return(FALSE); 1412 1421 } 1413 1422 } 1423 1414 1424 dprintf((LOG, "**********************************************************************" )); 1415 1425 dprintf((LOG, "********************** Finished Loading Module *********************" )); 1416 1426 dprintf((LOG, "**********************************************************************" )); 1417 1427 } 1418 else dprintf((LOG, "Already found ", pszCurModule )); 1419 1420 WinDll->AddRef(); 1428 else { 1429 if(WinDll->isLxDll() && !WinDll->isLoaded()) { 1430 //can happen with i.e. wininet 1431 //wininet depends on wsock32; when the app loads wsock32 afterwards 1432 //with LoadLibrary or as a child of another dll, we need to make 1433 //sure it's loaded once with DosLoadModule 1434 WinDll->loadLibrary(); 1435 } 1436 WinDll->AddRef(); 1437 1438 dprintf((LOG, "Already found ", pszCurModule)); 1439 } 1440 //add the dll we just loaded to dependency list for this image 1441 addDependency((Win32DllBase *)WinDll); 1442 1443 //Make sure the dependency list is correct (already done 1444 //in the ctor of Win32DllBase, but for LX dlls the parent is 1445 //then set to NULL; so change it here again 1446 WinDll->setUnloadOrder(this); 1421 1447 1422 1448 pulImport = (PULONG)((ULONG)pulImport + (ULONG)win32file);
Note:
See TracChangeset
for help on using the changeset viewer.