Ignore:
Timestamp:
Nov 9, 1999, 3:19:47 PM (26 years ago)
Author:
sandervl
Message:

heapstring fixes + dll renaming support added

File:
1 edited

Legend:

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

    r1579 r1663  
    1 /* $Id: winimagepeldr.cpp,v 1.10 1999-11-03 20:18:22 sandervl Exp $ */
     1/* $Id: winimagepeldr.cpp,v 1.11 1999-11-09 14:19:47 sandervl Exp $ */
    22
    33/*
     
    10601060    if(WinDll == NULL)
    10611061    {  //not found, so load it
    1062         if(isPEImage(pszCurModule) == FALSE)
     1062        char modname[CCHMAXPATH];
     1063       
     1064        strcpy(modname, pszCurModule);
     1065        //rename dll if necessary (i.e. OLE32 -> OLE32OS2)
     1066        Win32DllBase::renameDll(modname);
     1067
     1068        if(isPEImage(modname) == FALSE)
    10631069        {//LX image, so let OS/2 do all the work for us
    10641070                APIRET rc;
    10651071                char   szModuleFailure[CCHMAXPATH] = "";
    1066                 char   szModuleName[CCHMAXPATH];
    10671072                ULONG  hInstanceNewDll;
    10681073
    1069                 strcpy(szModuleName, pszCurModule);
    1070                 char *dot = strchr(szModuleName, '.');
     1074                char *dot = strchr(modname, '.');
    10711075                if(dot) {
    10721076                        *dot = 0;
    10731077                }
    1074                 strcat(szModuleName, ".DLL");
    1075                 rc = DosLoadModule(szModuleFailure, sizeof(szModuleFailure), szModuleName, (HMODULE *)&hInstanceNewDll);
     1078                strcat(modname, ".DLL");
     1079                rc = DosLoadModule(szModuleFailure, sizeof(szModuleFailure), modname, (HMODULE *)&hInstanceNewDll);
    10761080                if(rc) {
    10771081                        dprintf(("DosLoadModule returned %X for %s\n", rc, szModuleFailure));
     
    10871091        }
    10881092        else {
    1089                 WinDll = new Win32PeLdrDll(pszCurModule, this);
     1093                WinDll = new Win32PeLdrDll(modname, this);
    10901094
    10911095                if(WinDll == NULL) {
Note: See TracChangeset for help on using the changeset viewer.