Ignore:
Timestamp:
Sep 18, 1999, 2:07:35 PM (26 years ago)
Author:
sandervl
Message:

GetModuleHandleA fix

File:
1 edited

Legend:

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

    r956 r966  
    1 /* $Id: wprocess.cpp,v 1.31 1999-09-15 23:38:03 sandervl Exp $ */
     1/* $Id: wprocess.cpp,v 1.32 1999-09-18 12:07:35 sandervl Exp $ */
    22
    33/*
     
    494494
    495495  if(lpszModule == NULL) {
    496         hMod = WinExe->getInstanceHandle();
     496        if(WinExe)
     497                hMod = WinExe->getInstanceHandle();
     498        else    hMod = -1;
    497499  }
    498500  else {
     
    513515                *dot = 0;
    514516
    515         if(!fDllModule && !strcmpi(lpszModule, WinExe->getModuleName())) {
     517        if(!fDllModule && WinExe && !strcmpi(lpszModule, WinExe->getModuleName())) {
    516518                hMod = WinExe->getInstanceHandle();
    517519        }
Note: See TracChangeset for help on using the changeset viewer.