https://git.reactos.org/?p=reactos.git;a=commitdiff;h=62f62da8ba79eb6745501…
commit 62f62da8ba79eb6745501da726d88526c6036ae6
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Sun Jun 6 14:46:38 2021 +0200
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Sat Jun 19 12:17:18 2021 +0200
[NTOS:KE] Fix KxReleaseSpinLock for 64 bit SMP builds
---
ntoskrnl/include/internal/spinlock.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/ntoskrnl/include/internal/spinlock.h b/ntoskrnl/include/internal/spinlock.h
index a5dd8c502d5..e126dbe0b03 100644
--- a/ntoskrnl/include/internal/spinlock.h
+++ b/ntoskrnl/include/internal/spinlock.h
@@ -97,7 +97,11 @@ KxReleaseSpinLock(IN PKSPIN_LOCK SpinLock)
}
#endif
/* Clear the lock */
+#ifdef _WIN64
+ InterlockedAnd64((PLONG64)SpinLock, 0);
+#else
InterlockedAnd((PLONG)SpinLock, 0);
+#endif
}
#endif