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/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);
Note: See TracChangeset for help on using the changeset viewer.