mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 16:45:50 +00:00
properly reset the reference counter in ExReInitializeRundownProtection()
svn path=/trunk/; revision=18425
This commit is contained in:
parent
7b39c07e8a
commit
1cb48e4fa8
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue