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

    r3705 r3993  
    1 /* $Id: initterm.cpp,v 1.11 2000-06-14 13:17:50 sandervl Exp $ */
     1/* $Id: initterm.cpp,v 1.12 2000-08-11 10:56:15 sandervl Exp $ */
    22
    33/*
     
    4747 extern DWORD _Resource_PEResTab;
    4848}
     49static HMODULE dllHandle = 0;
    4950//******************************************************************************
    5051//******************************************************************************
     
    100101         if(InitRegionSpace() == FALSE) {
    101102                return 0UL;
    102          }
    103          if(RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab) == FALSE)
     103         }
     104         dllHandle = RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab,
     105                                   GDI32_MAJORIMAGE_VERSION, GDI32_MINORIMAGE_VERSION,
     106                                   IMAGE_SUBSYSTEM_NATIVE);
     107         if(dllHandle == 0)
    104108                return 0UL;
    105109
    106110         break;
    107111      case 1 :
    108          UnregisterLxDll(hModule);
     112         if(dllHandle) {
     113                UnregisterLxDll(dllHandle);
     114         }
    109115         break;
    110116      default  :
Note: See TracChangeset for help on using the changeset viewer.