Throw exception only for Wine internal locks.

This commit is contained in:
Dmitry Timoshkov 2002-08-13 18:09:22 +00:00 committed by Alexandre Julliard
parent 473f3de872
commit 9447958bc1
1 changed files with 3 additions and 0 deletions

View File

@ -130,6 +130,9 @@ NTSTATUS WINAPI RtlpWaitForCriticalSection( RTL_CRITICAL_SECTION *crit )
}
if (res == STATUS_WAIT_0) return STATUS_SUCCESS;
/* Throw exception only for Wine internal locks */
if (!crit->DebugInfo) continue;
rec.ExceptionCode = EXCEPTION_CRITICAL_SECTION_WAIT;
rec.ExceptionFlags = 0;
rec.ExceptionRecord = NULL;