Changeset 1663 for trunk/src/kernel32/wprocess.cpp
- Timestamp:
- Nov 9, 1999, 3:19:47 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/wprocess.cpp
r1618 r1663 1 /* $Id: wprocess.cpp,v 1.4 4 1999-11-05 14:06:44sandervl Exp $ */1 /* $Id: wprocess.cpp,v 1.45 1999-11-09 14:19:47 sandervl Exp $ */ 2 2 3 3 /* … … 311 311 } 312 312 313 hDll = O32_LoadLibrary(lpszLibFile); 313 strcpy(modname, lpszLibFile); 314 strupr(modname); 315 //rename dll if necessary (i.e. OLE32 -> OLE32OS2) 316 Win32DllBase::renameDll(modname); 317 318 hDll = O32_LoadLibrary(modname); 314 319 dprintf(("KERNEL32: iLoadLibraryA %s returned %X (%d)\n", 315 320 lpszLibFile, … … 321 326 } 322 327 323 strcpy(modname, lpszLibFile);324 strupr(modname);325 328 if(!strstr(modname, ".")) { 326 329 strcat(modname,".DLL"); … … 696 699 //Retrieve the version 697 700 //****************************************************************************** 698 BOOL SYSTEM GetVersionStruct(char * modname, char *verstruct, ULONG bufLength)701 BOOL SYSTEM GetVersionStruct(char *lpszModName, char *verstruct, ULONG bufLength) 699 702 { 700 703 Win32ImageBase *winimage; 701 704 Win32PeLdrRsrcImg *rsrcimg; 702 705 703 dprintf(("GetVersionStruct "));704 if(WinExe && !stricmp(WinExe->getFullPath(), modname)) {706 dprintf(("GetVersionStruct of module %s", lpszModName)); 707 if(WinExe && !stricmp(WinExe->getFullPath(), lpszModName)) { 705 708 winimage = (Win32ImageBase *)WinExe; 706 709 } 707 710 else { 708 winimage = (Win32ImageBase *)Win32DllBase::findModule( modname);711 winimage = (Win32ImageBase *)Win32DllBase::findModule(lpszModName); 709 712 if(winimage == NULL) 710 713 { 714 char modname[CCHMAXPATH]; 715 716 strcpy(modname, lpszModName); 717 //rename dll if necessary (i.e. OLE32 -> OLE32OS2) 718 Win32DllBase::renameDll(modname); 719 711 720 if(Win32ImageBase::isPEImage(modname) == FALSE) 712 721 { … … 744 753 //****************************************************************************** 745 754 //****************************************************************************** 746 ULONG SYSTEM GetVersionSize(char * modname)755 ULONG SYSTEM GetVersionSize(char *lpszModName) 747 756 { 748 757 Win32ImageBase *winimage; 749 758 Win32PeLdrRsrcImg *rsrcimg; 750 759 751 dprintf(("GetVersionSize of %s\n", modname));752 753 if(WinExe && !stricmp(WinExe->getFullPath(), modname)) {760 dprintf(("GetVersionSize of %s\n", lpszModName)); 761 762 if(WinExe && !stricmp(WinExe->getFullPath(), lpszModName)) { 754 763 winimage = (Win32ImageBase *)WinExe; 755 764 } 756 765 else { 757 winimage = (Win32ImageBase *)Win32DllBase::findModule( modname);766 winimage = (Win32ImageBase *)Win32DllBase::findModule(lpszModName); 758 767 if(winimage == NULL) 759 768 { 769 char modname[CCHMAXPATH]; 770 771 strcpy(modname, lpszModName); 772 //rename dll if necessary (i.e. OLE32 -> OLE32OS2) 773 Win32DllBase::renameDll(modname); 774 760 775 if(Win32ImageBase::isPEImage(modname) == FALSE) 761 776 {
Note:
See TracChangeset
for help on using the changeset viewer.