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

    r3740 r3993  
    1 /* $Id: initterm.cpp,v 1.43 2000-06-21 20:51:52 sandervl Exp $ */
     1/* $Id: initterm.cpp,v 1.44 2000-08-11 10:56:16 sandervl Exp $ */
    22
    33/*
     
    8181int   loadNr = 0;
    8282char  kernel32Path[CCHMAXPATH] = "";
     83static HMODULE dllHandle = 0;
    8384
    8485/****************************************************************************/
     
    128129
    129130            PROFILE_LoadOdinIni();
    130             if(RegisterLxDll(hModule, 0, (PVOID)&_Resource_PEResTab) == FALSE)
     131            dllHandle = RegisterLxDll(hModule, 0, (PVOID)&_Resource_PEResTab);
     132            if(dllHandle == 0)
    131133                return 0UL;
    132134
    133135            //SvL: Kernel32 is a special case; pe.exe loads it, so increase
    134136            //     the reference count here
    135             Win32DllBase *module = Win32DllBase::findModule(hModule);
     137            Win32DllBase *module = Win32DllBase::findModule(dllHandle);
    136138            if(module) {
    137139                module->AddRef();
     
    178180        }
    179181        case 1 :
    180             UnregisterLxDll(hModule);
     182            if(dllHandle) {
     183                UnregisterLxDll(dllHandle);
     184            }
    181185            break;
    182186        default  :
Note: See TracChangeset for help on using the changeset viewer.