Ignore:
Timestamp:
Mar 18, 2000, 8:49:44 PM (25 years ago)
Author:
sandervl
Message:

added extra check for fs corruption during dll attach

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/exceptions.cpp

    r2949 r3160  
    1 /* $Id: exceptions.cpp,v 1.36 2000-02-29 19:17:13 sandervl Exp $ */
     1/* $Id: exceptions.cpp,v 1.37 2000-03-18 19:49:43 sandervl Exp $ */
    22
    33/*
     
    11171117
    11181118  DosSetExceptionHandler(pExceptRec);
    1119   dprintf(("OS2SetExceptionHandler: exception chain %x (old %x)", pExceptRec, pExceptRec->prev_structure));
    1120 }
     1119  dprintf(("OS2SetExceptionHandler: exception chain %x", pExceptRec));
     1120  PrintExceptionChain();
     1121}
     1122
     1123#ifdef DEBUG
     1124void PrintExceptionChain()
     1125{
     1126 USHORT sel = RestoreOS2FS();
     1127 PEXCEPTIONREGISTRATIONRECORD pExceptRec = (PEXCEPTIONREGISTRATIONRECORD)QueryExceptionChain();
     1128
     1129  dprintf(("Exception chain list:"));
     1130  while(pExceptRec != 0 && (ULONG)pExceptRec != -1) {
     1131        dprintf(("record %x", pExceptRec));
     1132        pExceptRec = pExceptRec->prev_structure;
     1133  }
     1134  SetFS(sel);
     1135}
     1136#endif
     1137
    11211138
    11221139/*****************************************************************************
     
    11331150void OS2UnsetExceptionHandler(void *exceptframe)
    11341151{
    1135   DosUnsetExceptionHandler((PEXCEPTIONREGISTRATIONRECORD)exceptframe);
     1152 PEXCEPTIONREGISTRATIONRECORD pExceptRec = (PEXCEPTIONREGISTRATIONRECORD)exceptframe;
     1153
     1154  DosUnsetExceptionHandler(pExceptRec);
     1155  dprintf(("OS2UnsetExceptionHandler: exception chain %x", pExceptRec));
     1156  PrintExceptionChain();
    11361157}
    11371158
Note: See TracChangeset for help on using the changeset viewer.