properly reset the reference counter in ExReInitializeRundownProtection()

svn path=/trunk/; revision=18425
This commit is contained in:
Thomas Bluemel 2005-10-13 10:29:04 +00:00
parent 7b39c07e8a
commit 1cb48e4fa8

View file

@ -94,9 +94,9 @@ ExReInitializeRundownProtection (
/* Reset the count */ /* Reset the count */
#ifdef _WIN64 #ifdef _WIN64
InterlockedExchangeAdd64((LONGLONG*)&RunRef->Count, 0LL); InterlockedExchange64((LONGLONG*)&RunRef->Count, 0LL);
#else #else
InterlockedExchangeAdd((LONG*)&RunRef->Count, 0); InterlockedExchange((LONG*)&RunRef->Count, 0);
#endif #endif
} }