mirror of
https://github.com/reactos/reactos.git
synced 2024-10-21 13:00:24 +00:00
fix InterlockedExchangePointer usage
svn path=/branches/ros-amd64-bringup/; revision=37433
This commit is contained in:
parent
0460be46a7
commit
6918fdc238
|
@ -214,7 +214,7 @@ ExpAllocateExclusiveWaiterEvent(IN PERESOURCE Resource,
|
|||
KeInitializeEvent(Event, SynchronizationEvent, FALSE);
|
||||
|
||||
/* Set it */
|
||||
if (InterlockedCompareExchangePointer(&Resource->ExclusiveWaiters,
|
||||
if (InterlockedCompareExchangePointer((PVOID*)&Resource->ExclusiveWaiters,
|
||||
Event,
|
||||
NULL))
|
||||
{
|
||||
|
@ -274,7 +274,7 @@ ExpAllocateSharedWaiterSemaphore(IN PERESOURCE Resource,
|
|||
KeInitializeSemaphore(Semaphore, 0, MAXLONG);
|
||||
|
||||
/* Set it */
|
||||
if (InterlockedCompareExchangePointer(&Resource->SharedWaiters,
|
||||
if (InterlockedCompareExchangePointer((PVOID*)&Resource->SharedWaiters,
|
||||
Semaphore,
|
||||
NULL))
|
||||
{
|
||||
|
|
|
@ -2451,7 +2451,7 @@ NtSetInformationFile(IN HANDLE FileHandle,
|
|||
/* Set the Data */
|
||||
Context->Key = CompletionInfo->Key;
|
||||
Context->Port = Queue;
|
||||
if (InterlockedCompareExchangePointer(&FileObject->
|
||||
if (InterlockedCompareExchangePointer((PVOID*)&FileObject->
|
||||
CompletionContext,
|
||||
Context,
|
||||
NULL))
|
||||
|
|
|
@ -634,7 +634,7 @@ PsImpersonateClient(IN PETHREAD Thread,
|
|||
if (!Impersonation) return STATUS_INSUFFICIENT_RESOURCES;
|
||||
|
||||
/* Update the pointer */
|
||||
OldData = InterlockedCompareExchangePointer(&Thread->
|
||||
OldData = InterlockedCompareExchangePointer((PVOID*)&Thread->
|
||||
ImpersonationInfo,
|
||||
Impersonation,
|
||||
NULL);
|
||||
|
|
Loading…
Reference in a new issue