Ignore:
Timestamp:
Feb 27, 2012, 6:47:33 PM (14 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/gdi32/initterm.cpp

    r21916 r21976  
    6565
    6666    if (!InitializeKernel32())
    67         return 0;
     67        return -1;
    6868
    6969    CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
    70     if(InitRegionSpace() == FALSE)
    71     {
    72         return 0UL;
    73     }
     70    if (InitRegionSpace() == FALSE)
     71        return -1;
    7472
    7573    DIBSection::initDIBSection();
    76     if(CPUFeatures & CPUID_MMX)
     74    if (CPUFeatures & CPUID_MMX)
    7775    {
    7876        pRGB555to565 = RGB555to565MMX;
     
    8886                              GDI32_MAJORIMAGE_VERSION, GDI32_MINORIMAGE_VERSION,
    8987                              IMAGE_SUBSYSTEM_NATIVE);
    90     if(dllHandle == 0)
    91         return 0UL;
     88    if (dllHandle == 0)
     89        return -1;
    9290
    9391    dprintf(("gdi32 init %s %s (%x)", __DATE__, __TIME__, DLL_InitGdi32));
Note: See TracChangeset for help on using the changeset viewer.