Changeset 1192 for trunk/src


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

Winspool load bugfix

Location:
trunk/src/kernel32
Files:
2 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));
  • trunk/src/kernel32/winimgres.cpp

    r1150 r1192  
    1 /* $Id: winimgres.cpp,v 1.21 1999-10-06 08:07:41 sandervl Exp $ */
     1/* $Id: winimgres.cpp,v 1.22 1999-10-08 16:27:21 sandervl Exp $ */
    22
    33/*
     
    265265  if(pData == NULL) {
    266266        if(HIWORD(id)) {
    267                 dprintf(("Win32ImageBase::getPEResource: couldn't find resource %s (type %d, lang %d)", id, type, lang));
     267                dprintf(("Win32ImageBase::getPEResource %s: couldn't find resource %s (type %d, lang %d)", szModule, id, type, lang));
    268268        }
    269         else    dprintf(("Win32ImageBase::getPEResource: couldn't find resource %d (type %d, lang %d)", id, type, lang));
     269        else    dprintf(("Win32ImageBase::getPEResource %s: couldn't find resource %d (type %d, lang %d)", szModule, id, type, lang));
    270270        return 0;
    271271  }
Note: See TracChangeset for help on using the changeset viewer.