Changeset 4407 for trunk/src/kernel32/wprocess.cpp
- Timestamp:
- Oct 3, 2000, 7:28:32 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/wprocess.cpp
r4372 r4407 1 /* $Id: wprocess.cpp,v 1.9 8 2000-10-02 13:38:58sandervl Exp $ */1 /* $Id: wprocess.cpp,v 1.99 2000-10-03 17:28:32 sandervl Exp $ */ 2 2 3 3 /* … … 788 788 if(pModule->isLxDll()) 789 789 { 790 ((Win32LxDll *)pModule)->setDllHandleOS2(hDll); 791 if (fPeLoader) 792 pModule->AddRef(); 790 ((Win32LxDll *)pModule)->setDllHandleOS2(hDll); 791 if(fPeLoader) 792 { 793 if(pModule->AddRef() == -1) {//-1 -> load failed (attachProcess) 794 dprintf(("Dll %s refused to be loaded; aborting", szModname)); 795 delete pModule; 796 return 0; 797 } 798 } 793 799 } 794 800 pModule->incDynamicLib(); … … 796 802 else 797 803 return hDll; //happens when LoadLibrary is called in kernel32's initterm (nor harmful) 804 798 805 dprintf(("KERNEL32: LoadLibraryExA(%s, 0x%x, 0x%x): returns 0x%x. Loaded %s using O32_LoadLibrary.", 799 806 lpszLibFile, hFile, dwFlags, hDll, szModname)); … … 902 909 SetLastError(ERROR_DLL_INIT_FAILED); 903 910 delete peldrDll; 911 return NULL; 904 912 } 905 913 } … … 910 918 SetLastError(ERROR_INVALID_EXE_SIGNATURE); 911 919 delete peldrDll; 920 return NULL; 912 921 } 913 922 } … … 917 926 lpszLibFile, hFile, dwFlags, szModname, fPE)); 918 927 SetLastError(fPE); 928 return NULL; 919 929 } 920 930 … … 1100 1110 return ERROR_NOT_ENOUGH_MEMORY; 1101 1111 } 1102 1112 strcpy((char *)pszCmdLineA, pszPeExe); 1113 1103 1114 rc = NO_ERROR; 1104 1115 }
Note:
See TracChangeset
for help on using the changeset viewer.