Author: tkreuzer
Date: Mon Nov 17 20:40:51 2008
New Revision: 37433
URL:
http://svn.reactos.org/svn/reactos?rev=37433&view=rev
Log:
fix InterlockedExchangePointer usage
Modified:
branches/ros-amd64-bringup/reactos/ntoskrnl/ex/resource.c
branches/ros-amd64-bringup/reactos/ntoskrnl/io/iomgr/iofunc.c
branches/ros-amd64-bringup/reactos/ntoskrnl/ps/security.c
Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/ex/resource.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
==============================================================================
--- branches/ros-amd64-bringup/reactos/ntoskrnl/ex/resource.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/ntoskrnl/ex/resource.c [iso-8859-1] Mon Nov 17
20:40:51 2008
@@ -214,7 +214,7 @@
KeInitializeEvent(Event, SynchronizationEvent, FALSE);
/* Set it */
- if (InterlockedCompareExchangePointer(&Resource->ExclusiveWaiters,
+ if
(InterlockedCompareExchangePointer((PVOID*)&Resource->ExclusiveWaiters,
Event,
NULL))
{
@@ -274,7 +274,7 @@
KeInitializeSemaphore(Semaphore, 0, MAXLONG);
/* Set it */
- if (InterlockedCompareExchangePointer(&Resource->SharedWaiters,
+ if
(InterlockedCompareExchangePointer((PVOID*)&Resource->SharedWaiters,
Semaphore,
NULL))
{
Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/io/iomgr/iofunc.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
==============================================================================
--- branches/ros-amd64-bringup/reactos/ntoskrnl/io/iomgr/iofunc.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/ntoskrnl/io/iomgr/iofunc.c [iso-8859-1] Mon Nov 17
20:40:51 2008
@@ -2451,7 +2451,7 @@
/* Set the Data */
Context->Key = CompletionInfo->Key;
Context->Port = Queue;
- if (InterlockedCompareExchangePointer(&FileObject->
+ if (InterlockedCompareExchangePointer((PVOID*)&FileObject->
CompletionContext,
Context,
NULL))
Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/ps/security.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
==============================================================================
--- branches/ros-amd64-bringup/reactos/ntoskrnl/ps/security.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/ntoskrnl/ps/security.c [iso-8859-1] Mon Nov 17
20:40:51 2008
@@ -634,7 +634,7 @@
if (!Impersonation) return STATUS_INSUFFICIENT_RESOURCES;
/* Update the pointer */
- OldData = InterlockedCompareExchangePointer(&Thread->
+ OldData = InterlockedCompareExchangePointer((PVOID*)&Thread->
ImpersonationInfo,
Impersonation,
NULL);