Changeset 8548 for trunk/src/kernel32/misc.cpp
- Timestamp:
- Jun 2, 2002, 2:42:09 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/misc.cpp
r8021 r8548 1 /* $Id: misc.cpp,v 1.4 6 2002-02-26 17:01:23sandervl Exp $ */1 /* $Id: misc.cpp,v 1.47 2002-06-02 12:42:09 sandervl Exp $ */ 2 2 3 3 /* … … 495 495 //handler will hang the process 496 496 //****************************************************************************** 497 void LogException(int state)497 int LogException(int state, int prevlock) 498 498 { 499 499 TEB *teb = GetThreadTEB(); 500 501 if (!teb) return; 500 int ret = 0; 501 502 if (!teb) return 0; 502 503 503 504 #if !defined(__EMX__) … … 514 515 #endif 515 516 #endif 517 ret = (*lock); 516 518 if (state == ENTER_EXCEPTION) 517 519 { 518 (*lock)--;520 if((*lock) > 0) (*lock)--; 519 521 } 520 522 else 521 523 { //LEAVE_EXCEPTION 522 (*lock)++;524 if(prevlock) (*lock)++; 523 525 } 524 526 } … … 528 530 // I wanna have this compile, so we'll address problems later. 529 531 #endif 532 return ret; 530 533 } 531 534 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.