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/Odin32API/odindll.cpp

    r976 r3993  
    1 /* $Id: odindll.cpp,v 1.1 1999-09-18 17:46:28 sandervl Exp $ */
     1/* $Id: odindll.cpp,v 1.2 2000-08-11 10:56:12 sandervl Exp $ */
    22
    33/*
     
    4343extern DWORD _Resource_PEResTab;
    4444}
     45static HMODULE dllHandle = 0;
    4546
    4647BOOL WINAPI LibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved);
     
    8687         /*******************************************************************/
    8788
    88          if(RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab) == FALSE)
    89                 return 0UL;
     89         dllHandle = RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab);
     90         if(dllHandle == 0)
     91                return 0UL;
    9092
    9193         rc = DosExitList(0x0000F000|EXLST_ADD, cleanup);
     
    9597         break;
    9698      case 1 :
    97          UnregisterLxDll(hModule);
     99         if(dllHandle) {
     100                UnregisterLxDll(dllHandle);
     101         }
    98102         break;
    99103      default  :
Note: See TracChangeset for help on using the changeset viewer.