Ignore:
Timestamp:
Oct 4, 1999, 11:56:04 AM (26 years ago)
Author:
sandervl
Message:

Lots of changes by several people (see changelog for 4 October

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/wprocess.cpp

    r1052 r1118  
    1 /* $Id: wprocess.cpp,v 1.33 1999-09-25 17:55:21 sandervl Exp $ */
     1/* $Id: wprocess.cpp,v 1.34 1999-10-04 09:55:57 sandervl Exp $ */
    22
    33/*
     
    646646BOOL SYSTEM GetVersionStruct(char *modname, char *verstruct, ULONG bufLength)
    647647{
    648  HINSTANCE       hinstance;
    649648 Win32ImageBase *winimage;
    650649
    651650  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)) {
    658652        winimage = (Win32ImageBase *)WinExe;
    659653  }
    660654  else {
    661         winimage = (Win32ImageBase *)Win32DllBase::findModule(hinstance);
     655        winimage = (Win32ImageBase *)Win32DllBase::findModule(modname);
    662656        if(winimage == NULL) {
    663657                dprintf(("GetVersionStruct can't find Win32Image for %s\n", modname));
     
    671665ULONG SYSTEM GetVersionSize(char *modname)
    672666{
    673  HINSTANCE       hinstance;
    674667 Win32ImageBase *winimage;
    675668
    676669  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)) {
    684672        winimage = (Win32ImageBase *)WinExe;
    685673  }
    686674  else {
    687         winimage = (Win32ImageBase *)Win32DllBase::findModule(hinstance);
     675        winimage = (Win32ImageBase *)Win32DllBase::findModule(modname);
    688676        if(winimage == NULL) {
    689677                dprintf(("GetVersionSize can't find Win32Image for %s\n", modname));
Note: See TracChangeset for help on using the changeset viewer.