Changeset 4381 for trunk/include/odinwrap.h
- Timestamp:
- Oct 2, 2000, 6:22:09 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/odinwrap.h
r4377 r4381 1 /* $Id: odinwrap.h,v 1.2 4 2000-10-02 15:52:06phaller Exp $ */1 /* $Id: odinwrap.h,v 1.25 2000-10-02 16:20:11 phaller Exp $ */ 2 2 3 3 /* … … 55 55 56 56 // --------------------------------------------------------------------------- 57 //SvL: Eases locating apis that corrupt FS58 #define error_FSSelector "!!! ERROR - FS Selector for thread %d corrupted by this function call !!!"59 60 57 extern int IsExeStarted(); //kernel32 61 62 #define FS_check() \63 { USHORT sel = GetFS(); \64 if(sel == 0x150b && IsExeStarted()) \65 dprintf(((char *)error_FSSelector, GetCurrentThreadId())); \66 }67 58 68 59 … … 106 97 107 98 #define FNPROLOGUE(a) \ 99 USHORT sel = GetFS(); \ 108 100 ODIN_HEAPCHECK(); \ 109 101 PROFILE_START(a) … … 111 103 #define FNEPILOGUE(a) \ 112 104 PROFILE_STOP(a) \ 113 FS_check(); \114 105 ODIN_HEAPCHECK(); \ 106 if (sel != GetFS() && IsExeStarted()) \ 107 dprintf(("ERROR: FS: for thread %08xh corrupted!", GetCurrentThreadId())); 115 108 116 109
Note:
See TracChangeset
for help on using the changeset viewer.