mirror of
https://github.com/reactos/reactos.git
synced 2024-07-01 18:24:24 +00:00
properly reset the reference counter in ExReInitializeRundownProtection()
svn path=/trunk/; revision=18425
This commit is contained in:
parent
7b39c07e8a
commit
1cb48e4fa8
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue