[NTOS:KE] Use variable instead function calling
[reactos.git] / reactos / ntoskrnl / include / internal / ke_x.h
index a9ed51c..3aa3e7a 100644 (file)
@@ -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 */