diff --git a/reactos/ntoskrnl/include/internal/ke_x.h b/reactos/ntoskrnl/include/internal/ke_x.h index a9ed51c6bb2..3aa3e7ab74c 100644 --- a/reactos/ntoskrnl/include/internal/ke_x.h +++ b/reactos/ntoskrnl/include/internal/ke_x.h @@ -1602,7 +1602,7 @@ _KeReleaseGuardedMutex(IN OUT PKGUARDED_MUTEX GuardedMutex) /* Sanity checks */ ASSERT(KeGetCurrentIrql() <= APC_LEVEL); - ASSERT(GuardedMutex->Owner == KeGetCurrentThread()); + ASSERT(GuardedMutex->Owner == Thread); ASSERT(Thread->SpecialApcDisable == GuardedMutex->SpecialApcDisable); /* Destroy the Owner */