Ignore:
Timestamp:
Feb 29, 2000, 8:17:13 PM (25 years ago)
Author:
sandervl
Message:

win32killprocess change

File:
1 edited

Legend:

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

    r2939 r2949  
    1 /* $Id: exceptions.cpp,v 1.35 2000-02-29 00:54:22 sandervl Exp $ */
     1/* $Id: exceptions.cpp,v 1.36 2000-02-29 19:17:13 sandervl Exp $ */
    22
    33/*
     
    520520void KillWin32Process(void)
    521521{
    522 
    523   ExitProcess(666);
     522 static BOOL fEntry = FALSE;
     523
     524  if(fEntry == FALSE) {
     525        fEntry = TRUE;
     526        ExitProcess(666);
     527        return;
     528  }
     529  //Restore original OS/2 TIB selector
     530  RestoreOS2FS();
     531
     532  SetExceptionChain((ULONG)-1);
     533  DosExit(EXIT_PROCESS, 666);
    524534}
    525535
     
    10071017continueFail:
    10081018
     1019////#define DEBUGSTACK
     1020#ifdef DEBUGSTACK
     1021  if(pCtxRec->ContextFlags & CONTEXT_CONTROL) {
     1022        ULONG *stackptr;
     1023        APIRET rc;
     1024        int    i;
     1025        ULONG  ulOffset, ulModule, ulObject;
     1026        CHAR   szModule[CCHMAXPATH];
     1027
     1028        stackptr = (ULONG *)pCtxRec->ctx_RegEsp;
     1029        dprintf(("Stack DUMP:"));
     1030        for(i=0;i<16;i++) {
     1031                rc = DosQueryModFromEIP(&ulModule,
     1032                                        &ulObject,
     1033                                        sizeof(szModule),
     1034                                        szModule,
     1035                                        &ulOffset,
     1036                                        (ULONG)*stackptr);
     1037
     1038                if (rc == NO_ERROR)
     1039                        dprintf(("0x%8x: 0x%8x %s (#%u), obj #%u:%08x", stackptr, *stackptr, szModule, ulModule, ulObject, ulOffset));
     1040                else    dprintf(("0x%8x: 0x%8x", stackptr, *stackptr));
     1041                stackptr++;
     1042        }
     1043        dprintf(("Stack DUMP END"));
     1044  }
     1045#endif
     1046
    10091047  case XCPT_BREAKPOINT:
    10101048  case XCPT_ARRAY_BOUNDS_EXCEEDED:
Note: See TracChangeset for help on using the changeset viewer.