Ignore:
Timestamp:
Feb 27, 2011, 6:19:21 AM (14 years ago)
Author:
abwillis
Message:

Ticket #32

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/peldr/pe.cpp

    r9625 r21580  
    261261#endif
    262262
    263   rc = DosLoadModule(exeName, sizeof(exeName), "PMWIN.DLL", &hmodPMWin);
     263  rc = DosLoadModule(exeName, sizeof(exeName), "PMWIN", &hmodPMWin);
    264264  rc = DosQueryProcAddr(hmodPMWin, ORD_WIN32INITIALIZE, NULL, (PFN *)&MyWinInitialize);
    265265  rc = DosQueryProcAddr(hmodPMWin, ORD_WIN32TERMINATE, NULL, (PFN *)&MyWinTerminate);
     
    279279
    280280  errorMod[0] = 0;
    281   rc = DosLoadModule(errorMod, sizeof(errorMod), "KERNEL32.DLL", &hmodKernel32);
     281  rc = DosLoadModule(errorMod, sizeof(errorMod), "KERNEL32", &hmodKernel32);
    282282  if(rc) {
    283283        sprintf(fullpath, szNoKernel32Msg, rc, errorMod);
     
    343343
    344344failerror:
    345   rc = DosLoadModule(exeName, sizeof(exeName), "PMWIN.DLL", &hmodPMWin);
     345  rc = DosLoadModule(exeName, sizeof(exeName), "PMWIN", &hmodPMWin);
    346346  rc = DosQueryProcAddr(hmodPMWin, ORD_WIN32INITIALIZE, NULL, (PFN *)&MyWinInitialize);
    347347  rc = DosQueryProcAddr(hmodPMWin, ORD_WIN32TERMINATE, NULL, (PFN *)&MyWinTerminate);
Note: See TracChangeset for help on using the changeset viewer.