Ignore:
Timestamp:
Oct 2, 2000, 6:22:09 PM (25 years ago)
Author:
phaller
Message:

.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/odinwrap.h

    r4377 r4381  
    1 /* $Id: odinwrap.h,v 1.24 2000-10-02 15:52:06 phaller Exp $ */
     1/* $Id: odinwrap.h,v 1.25 2000-10-02 16:20:11 phaller Exp $ */
    22
    33/*
     
    5555
    5656// ---------------------------------------------------------------------------
    57 //SvL: Eases locating apis that corrupt FS
    58 #define error_FSSelector "!!! ERROR - FS Selector for thread %d corrupted by this function call !!!"
    59 
    6057extern int IsExeStarted(); //kernel32
    61 
    62 #define FS_check()                       \
    63   { USHORT sel = GetFS();                \
    64     if(sel == 0x150b && IsExeStarted())  \
    65       dprintf(((char *)error_FSSelector, GetCurrentThreadId()));    \
    66   }
    6758
    6859
     
    10697
    10798#define FNPROLOGUE(a)   \
     99  USHORT sel = GetFS(); \
    108100  ODIN_HEAPCHECK();     \
    109101  PROFILE_START(a)
     
    111103#define FNEPILOGUE(a)   \
    112104  PROFILE_STOP(a)       \
    113   FS_check();           \
    114105  ODIN_HEAPCHECK();     \
     106  if (sel != GetFS() && IsExeStarted()) \
     107    dprintf(("ERROR: FS: for thread %08xh corrupted!", GetCurrentThreadId()));
    115108 
    116109 
Note: See TracChangeset for help on using the changeset viewer.