Ignore:
Timestamp:
Aug 11, 2000, 12:56:27 PM (25 years ago)
Author:
sandervl
Message:

Updates for fake system dll headers

File:
1 edited

Legend:

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

    r2647 r3993  
    1 /* $Id: initterm.cpp,v 1.9 2000-02-05 01:54:33 sandervl Exp $ */
     1/* $Id: initterm.cpp,v 1.10 2000-08-11 10:56:13 sandervl Exp $ */
    22
    33/*
     
    4646 BOOL WINAPI COMDLG32_DllEntryPoint(HINSTANCE hInstance, DWORD Reason, LPVOID Reserved);
    4747}
     48
     49static HMODULE dllHandle = 0;
     50
    4851//******************************************************************************
    4952//******************************************************************************
     
    9598         /*******************************************************************/
    9699
    97          if(RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab) == FALSE)
     100         dllHandle = RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab,
     101                                   COMDLG32_MAJORIMAGE_VERSION, COMDLG32_MINORIMAGE_VERSION,
     102                                   IMAGE_SUBSYSTEM_WINDOWS_GUI);
     103         if(dllHandle == 0)
    98104                return 0UL;
    99105
    100106         break;
    101107      case 1 :
    102          UnregisterLxDll(hModule);
     108         if(dllHandle) {
     109                UnregisterLxDll(dllHandle);
     110         }
    103111         break;
    104112      default  :
Note: See TracChangeset for help on using the changeset viewer.