Commit 04bd6840 authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

gdi32: Use RtlIsCriticalSectionLockedByThread to check lock owner.

parent 7c46763e
......@@ -867,7 +867,7 @@ void GDI_ReleaseObj( HGDIOBJ handle )
*/
void GDI_CheckNotLock(void)
{
if (gdi_section.OwningThread == ULongToHandle(GetCurrentThreadId()) && gdi_section.RecursionCount)
if (RtlIsCriticalSectionLockedByThread(&gdi_section))
{
ERR( "BUG: holding GDI lock\n" );
DebugBreak();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment