gdi32: Use RtlIsCriticalSectionLockedByThread to check lock owner.

Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sebastian Lackner 2015-10-10 05:40:07 +02:00 committed by Alexandre Julliard
parent 7c46763ea7
commit 04bd68409a
1 changed files with 1 additions and 1 deletions

View File

@ -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();