Changeset 1192 for trunk/src/kernel32/winimagepeldr.cpp
- Timestamp:
- Oct 8, 1999, 6:27:48 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/winimagepeldr.cpp
r1146 r1192 1 /* $Id: winimagepeldr.cpp,v 1. 4 1999-10-05 23:23:47 phallerExp $ */1 /* $Id: winimagepeldr.cpp,v 1.5 1999-10-08 16:27:48 sandervl Exp $ */ 2 2 3 3 /* … … 1018 1018 fout << "**********************************************************************" << endl; 1019 1019 WinDll = (Win32PeLdrDll *)Win32DllBase::findModule(pszCurModule); 1020 1020 1021 if(WinDll == NULL) 1021 1022 { //not found, so load it … … 1024 1025 APIRET rc; 1025 1026 char szModuleFailure[CCHMAXPATH] = ""; 1027 char szModuleName[CCHMAXPATH]; 1026 1028 ULONG hInstanceNewDll; 1027 1029 1028 rc = DosLoadModule(szModuleFailure, sizeof(szModuleFailure), pszCurModule, (HMODULE *)&hInstanceNewDll); 1030 strcpy(szModuleName, pszCurModule); 1031 char *dot = strchr(szModuleName, '.'); 1032 if(dot) { 1033 *dot = 0; 1034 } 1035 strcat(szModuleName, ".DLL"); 1036 rc = DosLoadModule(szModuleFailure, sizeof(szModuleFailure), szModuleName, (HMODULE *)&hInstanceNewDll); 1029 1037 if(rc) { 1030 1038 dprintf(("DosLoadModule returned %X for %s\n", rc, szModuleFailure));
Note:
See TracChangeset
for help on using the changeset viewer.