mirror of
https://github.com/reactos/wine.git
synced 2025-02-13 16:59:37 +00:00
user32: 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
04bd68409a
commit
240cf96235
@ -81,7 +81,7 @@ void USER_Unlock(void)
|
|||||||
*/
|
*/
|
||||||
void USER_CheckNotLock(void)
|
void USER_CheckNotLock(void)
|
||||||
{
|
{
|
||||||
if (user_section.OwningThread == ULongToHandle(GetCurrentThreadId()) && user_section.RecursionCount)
|
if (RtlIsCriticalSectionLockedByThread(&user_section))
|
||||||
{
|
{
|
||||||
ERR( "BUG: holding USER lock\n" );
|
ERR( "BUG: holding USER lock\n" );
|
||||||
DebugBreak();
|
DebugBreak();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user