Changeset 1663 for trunk/src/kernel32/winimagepeldr.cpp
- Timestamp:
- Nov 9, 1999, 3:19:47 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/winimagepeldr.cpp
r1579 r1663 1 /* $Id: winimagepeldr.cpp,v 1.1 0 1999-11-03 20:18:22sandervl Exp $ */1 /* $Id: winimagepeldr.cpp,v 1.11 1999-11-09 14:19:47 sandervl Exp $ */ 2 2 3 3 /* … … 1060 1060 if(WinDll == NULL) 1061 1061 { //not found, so load it 1062 if(isPEImage(pszCurModule) == FALSE) 1062 char modname[CCHMAXPATH]; 1063 1064 strcpy(modname, pszCurModule); 1065 //rename dll if necessary (i.e. OLE32 -> OLE32OS2) 1066 Win32DllBase::renameDll(modname); 1067 1068 if(isPEImage(modname) == FALSE) 1063 1069 {//LX image, so let OS/2 do all the work for us 1064 1070 APIRET rc; 1065 1071 char szModuleFailure[CCHMAXPATH] = ""; 1066 char szModuleName[CCHMAXPATH];1067 1072 ULONG hInstanceNewDll; 1068 1073 1069 strcpy(szModuleName, pszCurModule); 1070 char *dot = strchr(szModuleName, '.'); 1074 char *dot = strchr(modname, '.'); 1071 1075 if(dot) { 1072 1076 *dot = 0; 1073 1077 } 1074 strcat( szModuleName, ".DLL");1075 rc = DosLoadModule(szModuleFailure, sizeof(szModuleFailure), szModuleName, (HMODULE *)&hInstanceNewDll);1078 strcat(modname, ".DLL"); 1079 rc = DosLoadModule(szModuleFailure, sizeof(szModuleFailure), modname, (HMODULE *)&hInstanceNewDll); 1076 1080 if(rc) { 1077 1081 dprintf(("DosLoadModule returned %X for %s\n", rc, szModuleFailure)); … … 1087 1091 } 1088 1092 else { 1089 WinDll = new Win32PeLdrDll( pszCurModule, this);1093 WinDll = new Win32PeLdrDll(modname, this); 1090 1094 1091 1095 if(WinDll == NULL) {
Note:
See TracChangeset
for help on using the changeset viewer.