Changeset 21426 for trunk/src


Ignore:
Timestamp:
Aug 27, 2010, 12:32:58 AM (15 years ago)
Author:
dmik
Message:

Attempted to make Odin work in LIBPATHSTRICT=T mode by replacing DosQueryModuleHandle() with the custom made DosQueryModuleHandleStrict().

Location:
trunk/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/custombuild/initterm.cpp

    r7075 r21426  
    250250    HMODULE hModule;
    251251
    252     DosQueryModuleHandle("WGSS50", &hModule);
     252    DosQueryModuleHandleStrict("WGSS50", &hModule);
    253253    return O32__DLL_InitTerm(hModule, 0);
    254254}
  • trunk/src/kernel32/console.cpp

    r10471 r21426  
    7373#include <win32api.h>
    7474#include <misc.h>
     75#include <odincrt.h>
    7576
    7677#include "conwin.h"          // Windows Header for console only
     
    376377
    377378                                    /* obtain module handle to our resources */
    378   rc = DosQueryModuleHandle("KERNEL32",
    379                             &ConsoleGlobals.hmodResource);
     379  rc = DosQueryModuleHandleStrict("KERNEL32",
     380                                  &ConsoleGlobals.hmodResource);
    380381  if (rc != NO_ERROR)
    381382    dprintf(("KERNEL32/CONSOLE: Can't get handle to KERNEL32 (%u).\n",
  • trunk/src/kernel32/initterm.cpp

    r21323 r21426  
    159159        loadNr = globLoadNr++;
    160160    }
    161     DosQueryModuleHandle("WGSS50", &hModule);
     161    DosQueryModuleHandleStrict("WGSS50", &hModule);
    162162    _O32__DLL_InitTerm(hModule, 0);
    163     DosQueryModuleHandle("KERNEL32", &hModule);
     163    DosQueryModuleHandleStrict("KERNEL32", &hModule);
    164164    return DLLENTRYPOINT_NAME(hModule, 0);
    165165}
  • trunk/src/kernel32/oslibdos.cpp

    r21407 r21426  
    3636#include <win\winioctl.h>
    3737#include <misc.h>
     38#include <odincrt.h>
    3839#include "initterm.h"
    3940#include "oslibdos.h"
     
    126127 HMODULE hDoscalls;
    127128
    128   if(DosQueryModuleHandle("DOSCALLS", &hDoscalls) != NO_ERROR) {
     129  if(DosQueryModuleHandleStrict("DOSCALLS", &hDoscalls) != NO_ERROR) {
    129130    return;
    130131  }
     
    32623263
    32633264        HMODULE hDoscalls;
    3264         if(DosQueryModuleHandle("DOSCALLS", &hDoscalls) == NO_ERROR) {
     3265        if(DosQueryModuleHandleStrict("DOSCALLS", &hDoscalls) == NO_ERROR) {
    32653266            DosQueryProcAddr(hDoscalls, 564, NULL, (PFN *)&pfnDosSetThreadAffinity);
    32663267        }
     
    33063307
    33073308        HMODULE hDoscalls;
    3308         if(DosQueryModuleHandle("DOSCALLS", &hDoscalls) == NO_ERROR) {
     3309        if(DosQueryModuleHandleStrict("DOSCALLS", &hDoscalls) == NO_ERROR) {
    33093310            DosQueryProcAddr(hDoscalls, 563, NULL, (PFN *)&pfnDosQueryThreadAffinity);
    33103311        }
  • trunk/src/kernel32/oslibmisc.cpp

    r21308 r21426  
    2424#include "oslibmisc.h"
    2525#include <misc.h>
     26#include <odincrt.h>
    2627
    2728#define DBG_LOCALLOG    DBG_oslibmisc
     
    104105  else
    105106  {
    106     rc = DosQueryModuleHandle(pszModule,              /* query module handle */
    107                               &hModule);
     107    rc = DosQueryModuleHandleStrict(pszModule,        /* query module handle */
     108                                    &hModule);
    108109
    109110    if (rc != NO_ERROR)                                  /* check for errors */
     
    122123 APIRET  rc;
    123124
    124   rc = DosQueryModuleHandle(modname,              /* query module handle */
    125                             &hModule);
     125  rc = DosQueryModuleHandleStrict(modname,            /* query module handle */
     126                                  &hModule);
    126127  if(rc)
    127128    return(-1);
  • trunk/src/user32/pmwindow.cpp

    r21367 r21426  
    329329
    330330        DspInitSystemDriverName(szDisplay, sizeof(szDisplay));
    331         DosQueryModuleHandle(szDisplay, &hModDisplay);
     331        DosQueryModuleHandleStrict(szDisplay, &hModDisplay);
    332332
    333333        hbmFrameMenu[PMMENU_MINBUTTON] = GpiLoadBitmap(hdc, hModDisplay, SBMP_MINBUTTON, 0, 0);
Note: See TracChangeset for help on using the changeset viewer.