Ignore:
Timestamp:
Nov 21, 2000, 12:36:09 PM (25 years ago)
Author:
sandervl
Message:

Updates for TEB changes

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:55 sandervl Exp $ */
     1/* $Id: oslibexcept.cpp,v 1.5 2000-11-21 11:35:08 sandervl Exp $ */
    22/*
    33 * Exception handler util. procedures
     
    128128  }
    129129
    130   TEB  *winteb = GetThreadTEB();
    131   THDB *thdb   = (THDB *)(winteb+1);
     130  TEB *winteb = GetThreadTEB();
    132131
    133132  if(pContextRec->ContextFlags & CONTEXT_SEGMENTS) {
     
    136135//   This resets FS to 0x150B - we DON'T want that!!
    137136//      wincontextrec.SegFs   = pContextRec->ctx_SegFs;
    138         wincontextrec.SegFs   = thdb->teb_sel;
     137        wincontextrec.SegFs   = winteb->teb_sel;
    139138        wincontextrec.SegEs   = pContextRec->ctx_SegEs;
    140139        wincontextrec.SegDs   = pContextRec->ctx_SegDs;
     
    153152  // fuck up the Win32 exception handlers. They could end up using the wrong
    154153  // exception chain if they access FS:[0] directly.
    155   DWORD oldsel = SetReturnFS(thdb->teb_sel);
     154  DWORD oldsel = SetReturnFS(winteb->teb_sel);
    156155
    157156  switch(pReportRec->ExceptionNum) {
Note: See TracChangeset for help on using the changeset viewer.