Ignore:
Timestamp:
Feb 27, 2012, 6:47:33 PM (13 years ago)
Author:
dmik
Message:

Fix some DLL init code that would return incorrect result on failure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/initterm.cpp

    r21916 r21976  
    142142
    143143    if (!InitializeKernel32())
    144         return 0;
     144        return -1;
    145145
    146146    CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
     
    149149                                    USER32_MAJORIMAGE_VERSION, USER32_MINORIMAGE_VERSION,
    150150                                    IMAGE_SUBSYSTEM_WINDOWS_GUI);
    151     if(hInstanceUser32 == 0)
    152            return 0UL;
     151    if (hInstanceUser32 == 0)
     152        return -1;
    153153
    154154    dprintf(("user32 init %s %s (%x)", __DATE__, __TIME__, DLL_InitUser32));
     
    160160    //PH:  initializes HAB!
    161161    if (FALSE == InitPM())
    162       return 0UL;
     162        return -1;
    163163
    164164    InitializeWindowHandles();
Note: See TracChangeset for help on using the changeset viewer.