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().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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        }
Note: See TracChangeset for help on using the changeset viewer.