mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:42:57 +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 */
|
/* 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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue