Ignore:
Timestamp:
Oct 8, 1999, 6:27:48 PM (26 years ago)
Author:
sandervl
Message:

Winspool load bugfix

File:
1 edited

Legend:

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

    r1146 r1192  
    1 /* $Id: winimagepeldr.cpp,v 1.4 1999-10-05 23:23:47 phaller Exp $ */
     1/* $Id: winimagepeldr.cpp,v 1.5 1999-10-08 16:27:48 sandervl Exp $ */
    22
    33/*
     
    10181018    fout << "**********************************************************************" << endl;
    10191019    WinDll = (Win32PeLdrDll *)Win32DllBase::findModule(pszCurModule);
     1020
    10201021    if(WinDll == NULL)
    10211022    {  //not found, so load it
     
    10241025                APIRET rc;
    10251026                char   szModuleFailure[CCHMAXPATH] = "";
     1027                char   szModuleName[CCHMAXPATH];
    10261028                ULONG  hInstanceNewDll;
    10271029
    1028                 rc = DosLoadModule(szModuleFailure, sizeof(szModuleFailure), pszCurModule, (HMODULE *)&hInstanceNewDll);
     1030                strcpy(szModuleName, pszCurModule);
     1031                char *dot = strchr(szModuleName, '.');
     1032                if(dot) {
     1033                        *dot = 0;
     1034                }
     1035                strcat(szModuleName, ".DLL");
     1036                rc = DosLoadModule(szModuleFailure, sizeof(szModuleFailure), szModuleName, (HMODULE *)&hInstanceNewDll);
    10291037                if(rc) {
    10301038                        dprintf(("DosLoadModule returned %X for %s\n", rc, szModuleFailure));
Note: See TracChangeset for help on using the changeset viewer.