mirror of
https://github.com/reactos/wine.git
synced 2025-01-07 11:51:28 +00:00
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:
parent
7c46763ea7
commit
04bd68409a
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user