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 }