Ignore:
Timestamp:
Feb 18, 2002, 10:38:05 PM (24 years ago)
Author:
phaller
Message:

Fix: return code for GetModuleHandleA(null) in ODIN32-LX-environment

File:
1 edited

Legend:

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

    r7947 r7948  
    1 /* $Id: wprocess.cpp,v 1.145 2002-02-18 21:33:29 phaller Exp $ */
     1/* $Id: wprocess.cpp,v 1.146 2002-02-18 21:38:05 phaller Exp $ */
    22
    33/*
     
    15661566        if(WinExe)
    15671567                hMod = WinExe->getInstanceHandle();
    1568         else    hMod = -1;
     1568        else   
     1569        {
     1570          // Just fail this API
     1571          hMod = 0;
     1572          SetLastError(ERROR_INVALID_HANDLE);
     1573        }
    15691574    }
    15701575    else
Note: See TracChangeset for help on using the changeset viewer.