Changeset 1118 for trunk/src/kernel32/wprocess.cpp
- Timestamp:
- Oct 4, 1999, 11:56:04 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/wprocess.cpp
r1052 r1118 1 /* $Id: wprocess.cpp,v 1.3 3 1999-09-25 17:55:21sandervl Exp $ */1 /* $Id: wprocess.cpp,v 1.34 1999-10-04 09:55:57 sandervl Exp $ */ 2 2 3 3 /* … … 646 646 BOOL SYSTEM GetVersionStruct(char *modname, char *verstruct, ULONG bufLength) 647 647 { 648 HINSTANCE hinstance;649 648 Win32ImageBase *winimage; 650 649 651 650 dprintf(("GetVersionStruct")); 652 hinstance = OSLibQueryModuleHandle(modname); 653 if(hinstance == 0) { 654 dprintf(("GetVersionStruct can't find handle for %s\n", modname)); 655 return(FALSE); 656 } 657 if(WinExe && WinExe->getInstanceHandle() == hinstance) { 651 if(WinExe && !strcmp(WinExe->getFullPath(), modname)) { 658 652 winimage = (Win32ImageBase *)WinExe; 659 653 } 660 654 else { 661 winimage = (Win32ImageBase *)Win32DllBase::findModule( hinstance);655 winimage = (Win32ImageBase *)Win32DllBase::findModule(modname); 662 656 if(winimage == NULL) { 663 657 dprintf(("GetVersionStruct can't find Win32Image for %s\n", modname)); … … 671 665 ULONG SYSTEM GetVersionSize(char *modname) 672 666 { 673 HINSTANCE hinstance;674 667 Win32ImageBase *winimage; 675 668 676 669 dprintf(("GetVersionSize of %s\n", modname)); 677 hinstance = OSLibQueryModuleHandle(modname); 678 if(hinstance == 0) { 679 dprintf(("GetVersionSize can't find handle for %s\n", modname)); 680 return(FALSE); 681 } 682 683 if(WinExe && WinExe->getInstanceHandle() == hinstance) { 670 671 if(WinExe && !strcmp(WinExe->getFullPath(), modname)) { 684 672 winimage = (Win32ImageBase *)WinExe; 685 673 } 686 674 else { 687 winimage = (Win32ImageBase *)Win32DllBase::findModule( hinstance);675 winimage = (Win32ImageBase *)Win32DllBase::findModule(modname); 688 676 if(winimage == NULL) { 689 677 dprintf(("GetVersionSize can't find Win32Image for %s\n", modname));
Note:
See TracChangeset
for help on using the changeset viewer.