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

    r2650 r3993  
    1 /* $Id: initterm.cpp,v 1.2 2000-02-05 02:13:34 sandervl Exp $ */
     1/* $Id: initterm.cpp,v 1.3 2000-08-11 10:56:27 sandervl Exp $ */
    22
    33/*
     
    4545 extern DWORD _Resource_PEResTab;
    4646}
     47static HMODULE dllHandle = 0;
     48
    4749//******************************************************************************
    4850//******************************************************************************
     
    9597          return 0UL;
    9698
    97         if(RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab) == FALSE)
    98           return 0UL;
     99         dllHandle = RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab);
     100         if(dllHandle == 0)
     101                return 0UL;
    99102
    100         break;
     103         break;
    101104      }
    102105      case 1 :
    103         UnregisterLxDll(hModule);
    104         break;
     106         if(dllHandle) {
     107                UnregisterLxDll(dllHandle);
     108         }
     109         break;
    105110      default  :
    106111         return 0UL;
Note: See TracChangeset for help on using the changeset viewer.