Remove the Wine-specific EXCEPTION_CRITICAL_SECTION_WAIT define.
This commit is contained in:
parent
19a1513fd7
commit
56b5e0862c
|
@ -172,7 +172,7 @@ NTSTATUS WINAPI RtlpWaitForCriticalSection( RTL_CRITICAL_SECTION *crit )
|
|||
/* Throw exception only for Wine internal locks */
|
||||
if (!crit->DebugInfo) continue;
|
||||
|
||||
rec.ExceptionCode = EXCEPTION_CRITICAL_SECTION_WAIT;
|
||||
rec.ExceptionCode = STATUS_POSSIBLE_DEADLOCK;
|
||||
rec.ExceptionFlags = 0;
|
||||
rec.ExceptionRecord = NULL;
|
||||
rec.ExceptionAddress = RtlRaiseException; /* sic */
|
||||
|
|
|
@ -813,9 +813,6 @@ typedef DWORD (CALLBACK *LPPROGRESS_ROUTINE)(LARGE_INTEGER, LARGE_INTEGER, LARGE
|
|||
#define EXCEPTION_INVALID_HANDLE STATUS_INVALID_HANDLE
|
||||
#define CONTROL_C_EXIT STATUS_CONTROL_C_EXIT
|
||||
|
||||
/* Wine extension; Windows doesn't have a name for this code */
|
||||
#define EXCEPTION_CRITICAL_SECTION_WAIT 0xc0000194
|
||||
|
||||
#define DUPLICATE_CLOSE_SOURCE 0x00000001
|
||||
#define DUPLICATE_SAME_ACCESS 0x00000002
|
||||
|
||||
|
|
|
@ -543,7 +543,7 @@ static BOOL handle_exception(struct gdb_context* gdbctx, EXCEPTION_DEBUG_INFO* e
|
|||
gdbctx->last_sig = SIGINT;
|
||||
ret = TRUE;
|
||||
break;
|
||||
case EXCEPTION_CRITICAL_SECTION_WAIT:
|
||||
case STATUS_POSSIBLE_DEADLOCK:
|
||||
gdbctx->last_sig = SIGALRM;
|
||||
ret = TRUE;
|
||||
/* FIXME: we could also add here a O packet with additional information */
|
||||
|
|
|
@ -552,7 +552,7 @@ static BOOL DEBUG_HandleException(EXCEPTION_RECORD *rec, BOOL first_chance, BOOL
|
|||
case CONTROL_C_EXIT:
|
||||
DEBUG_Printf(DBG_CHN_MESG, "^C");
|
||||
break;
|
||||
case EXCEPTION_CRITICAL_SECTION_WAIT:
|
||||
case STATUS_POSSIBLE_DEADLOCK:
|
||||
{
|
||||
DBG_ADDR addr;
|
||||
|
||||
|
|
|
@ -127,7 +127,7 @@ static int format_exception_msg( const EXCEPTION_POINTERS *ptr, char *buffer, in
|
|||
case CONTROL_C_EXIT:
|
||||
len = snprintf( buffer, size, "Unhandled ^C");
|
||||
break;
|
||||
case EXCEPTION_CRITICAL_SECTION_WAIT:
|
||||
case STATUS_POSSIBLE_DEADLOCK:
|
||||
len = snprintf( buffer, size, "Critical section %08lx wait failed",
|
||||
rec->ExceptionInformation[0]);
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue