mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
fix InterlockedExchangePointer usage
svn path=/branches/ros-amd64-bringup/; revision=37433
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user