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/oleacc/initterm.cpp

    r21916 r21976  
    5050}
    5151
    52 ULONG SYSTEM DLL_InitMSCms(ULONG hModule)
     52ULONG SYSTEM DLL_InitOleAcc(ULONG hModule)
    5353{
    5454    if (!InitializeKernel32())
    55         return 0;
     55        return -1;
    5656
    5757    CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
     
    6161        return -1;
    6262
    63     dprintf(("oleacc init %s %s (%x)", __DATE__, __TIME__, DLL_InitMSCms));
     63    dprintf(("oleacc init %s %s (%x)", __DATE__, __TIME__, DLL_InitOleAcc));
    6464
    6565    return 0;
    6666}
    6767
    68 void SYSTEM DLL_TermMSCms(ULONG hModule)
     68void SYSTEM DLL_TermOleAcc(ULONG hModule)
    6969{
    7070    if (dllHandle)
     
    7676    if (DLL_InitDefault(hModule) == -1)
    7777        return -1;
    78     return DLL_InitMSCms(hModule);
     78    return DLL_InitOleAcc(hModule);
    7979}
    8080
    8181void SYSTEM DLL_Term(ULONG hModule)
    8282{
    83     DLL_TermMSCms(hModule);
     83    DLL_TermOleAcc(hModule);
    8484    DLL_TermDefault(hModule);
    8585}
Note: See TracChangeset for help on using the changeset viewer.