Changeset 4658 for trunk/src/kernel32/oslibexcept.cpp
- Timestamp:
- Nov 21, 2000, 12:36:09 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/oslibexcept.cpp
r4229 r4658 1 /* $Id: oslibexcept.cpp,v 1. 4 2000-09-09 08:59:55sandervl Exp $ */1 /* $Id: oslibexcept.cpp,v 1.5 2000-11-21 11:35:08 sandervl Exp $ */ 2 2 /* 3 3 * Exception handler util. procedures … … 128 128 } 129 129 130 TEB *winteb = GetThreadTEB(); 131 THDB *thdb = (THDB *)(winteb+1); 130 TEB *winteb = GetThreadTEB(); 132 131 133 132 if(pContextRec->ContextFlags & CONTEXT_SEGMENTS) { … … 136 135 // This resets FS to 0x150B - we DON'T want that!! 137 136 // wincontextrec.SegFs = pContextRec->ctx_SegFs; 138 wincontextrec.SegFs = thdb->teb_sel;137 wincontextrec.SegFs = winteb->teb_sel; 139 138 wincontextrec.SegEs = pContextRec->ctx_SegEs; 140 139 wincontextrec.SegDs = pContextRec->ctx_SegDs; … … 153 152 // fuck up the Win32 exception handlers. They could end up using the wrong 154 153 // exception chain if they access FS:[0] directly. 155 DWORD oldsel = SetReturnFS( thdb->teb_sel);154 DWORD oldsel = SetReturnFS(winteb->teb_sel); 156 155 157 156 switch(pReportRec->ExceptionNum) {
Note:
See TracChangeset
for help on using the changeset viewer.