Author: sserapion
Date: Sat Mar 21 13:37:38 2009
New Revision: 40153
URL:
http://svn.reactos.org/svn/reactos?rev=40153&view=rev
Log:
Use InterlockedCompareExchangePointer.
Modified:
branches/ros-amd64-bringup/reactos/drivers/wdm/audio/backpln/portcls/irpstream.c
Modified:
branches/ros-amd64-bringup/reactos/drivers/wdm/audio/backpln/portcls/irpstream.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/drive…
==============================================================================
--- branches/ros-amd64-bringup/reactos/drivers/wdm/audio/backpln/portcls/irpstream.c
[iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/drivers/wdm/audio/backpln/portcls/irpstream.c
[iso-8859-1] Sat Mar 21 13:37:38 2009
@@ -173,8 +173,7 @@
DPRINT("IIrpQueue_fnAddMapping NumMappings %u SizeOfMapping %lu NumDataAvailable
%lu Irp %p\n", This->NumMappings, Mapping->Header->DataUsed,
This->NumDataAvailable, Irp);
- /* FIXME use InterlockedCompareExchangePointer */
- if (InterlockedCompareExchange((volatile long *)&This->FirstMap,
(LONG)Mapping, (LONG)0) != 0)
+ if (InterlockedCompareExchangePointer((volatile void *)&This->FirstMap,
Mapping, (LONG)0) != 0)
ExInterlockedInsertTailList(&This->ListHead, &Mapping->Entry,
&This->Lock);
(void)InterlockedIncrement((volatile long*)&This->NumMappings);