Ignore:
Timestamp:
Jan 15, 2004, 11:39:15 AM (22 years ago)
Author:
sandervl
Message:

Loader updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/windlllx.cpp

    r10304 r10397  
    1 /* $Id: windlllx.cpp,v 1.28 2003-10-28 10:42:40 sandervl Exp $ */
     1/* $Id: windlllx.cpp,v 1.29 2004-01-15 10:39:07 sandervl Exp $ */
    22
    33/*
     
    55 *
    66 * Copyright 1999-2000 Sander van Leeuwen (sandervl@xs4all.nl)
     7 * Copyright 2003 Innotek Systemberatung GmbH (sandervl@innotek.de)
    78 *
    89 * TODO: Unloading of dlls probably needs to be fixed due to OS/2 bug
     
    4546*******************************************************************************/
    4647char *lpszCustomDllName      = NULL;
    47 char *lpszCustomExportPrefix = NULL;
    48 ULONG dwOrdinalBase          = 0;
     48PIMAGE_FILE_HEADER lpCustomDllPEHdr = NULL;
    4949
    5050/**
     
    5757//******************************************************************************
    5858//******************************************************************************
    59 void WIN32API SetCustomBuildName(char *lpszName, PIMAGE_FILE_HEADER  pfh)
    60 
     59void WIN32API SetCustomBuildName(char *lpszName, PIMAGE_FILE_HEADER pfh)
    6160{
    6261    lpszCustomDllName      = lpszName;
     62    lpCustomDllPEHdr       = pfh;
    6363}
    6464//******************************************************************************
     
    101101       }
    102102   }
     103   else {
     104       //make sure this dll hasn't already been loaded
     105       if(Win32DllBase::findModule(lpszCustomDllName) != NULL) {
     106           dprintf(("ERROR: RegisterLxDll: module %s already loaded!!", lpszCustomDllName));
     107           DebugInt3();
     108           return 0;
     109       }
     110   }
    103111   windll = new Win32LxDll(hInstance, EntryPoint, pResData, MajorImageVersion,
    104112                           MinorImageVersion, Subsystem);
     
    109117   //clear name override in case dll init loads another dll
    110118   lpszCustomDllName = NULL;
     119   lpCustomDllPEHdr  = NULL;
    111120
    112121   if(!fPeLoader) {
Note: See TracChangeset for help on using the changeset viewer.