Ignore:
Timestamp:
Jul 30, 2001, 2:02:45 PM (24 years ago)
Author:
sandervl
Message:

custom build fixes

File:
1 edited

Legend:

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

    r5959 r6412  
    1 /* $Id: winimagebase.cpp,v 1.32 2001-06-10 22:32:17 sandervl Exp $ */
     1/* $Id: winimagebase.cpp,v 1.33 2001-07-30 12:01:25 sandervl Exp $ */
    22
    33/*
     
    3030#include <windllbase.h>
    3131#include <winexebase.h>
     32#include <windlllx.h>
    3233#include <pefile.h>
    3334#include <unicode.h>
     
    5051    ulRVAResourceSection(0)
    5152{
     53  char *name;
     54
    5255  magic = MAGIC_WINIMAGE;
    5356
     
    5558    this->hinstance = hInstance;
    5659
    57     char *name = OSLibGetDllName(hinstance);
     60    if(lpszCustomDllName) {
     61         name = lpszCustomDllName;
     62    }
     63    else name = OSLibGetDllName(hinstance);
     64
    5865    strcpy(szFileName, name);
    5966    strupr(szFileName);
    6067
    61     //rename dll (os/2 -> win32) if necessary (i.e. OLE32OS2 -> OLE32)
    62     Win32DllBase::renameDll(szFileName, FALSE);
    63 
    64     name = strrchr(szFileName, '\\')+1;
    65     strcpy(szModule, name);
     68    if(lpszCustomDllName) {
     69        strcpy(szModule, name);
     70    }
     71    else {
     72        //rename dll (os/2 -> win32) if necessary (i.e. OLE32OS2 -> OLE32)
     73        Win32DllBase::renameDll(szFileName, FALSE);
     74        name = strrchr(szFileName, '\\')+1;
     75        strcpy(szModule, name);
     76    }
    6677  }
    6778  else {
Note: See TracChangeset for help on using the changeset viewer.