From 1cb48e4fa8c816c52ee4e22349ed20e96973157d Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Thu, 13 Oct 2005 10:29:04 +0000 Subject: [PATCH] properly reset the reference counter in ExReInitializeRundownProtection() svn path=/trunk/; revision=18425 --- reactos/ntoskrnl/ex/rundown.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/ex/rundown.c b/reactos/ntoskrnl/ex/rundown.c index 4b5a54eb41f..c5961d7690e 100644 --- a/reactos/ntoskrnl/ex/rundown.c +++ b/reactos/ntoskrnl/ex/rundown.c @@ -94,9 +94,9 @@ ExReInitializeRundownProtection ( /* Reset the count */ #ifdef _WIN64 - InterlockedExchangeAdd64((LONGLONG*)&RunRef->Count, 0LL); + InterlockedExchange64((LONGLONG*)&RunRef->Count, 0LL); #else - InterlockedExchangeAdd((LONG*)&RunRef->Count, 0); + InterlockedExchange((LONG*)&RunRef->Count, 0); #endif } -- 2.17.1