[SACDRV]: Another attempt to make MSVC happy.
authorAlex Ionescu <aionescu@gmail.com>
Tue, 6 Aug 2013 01:38:13 +0000 (01:38 +0000)
committerAlex Ionescu <aionescu@gmail.com>
Tue, 6 Aug 2013 01:38:13 +0000 (01:38 +0000)
svn path=/trunk/; revision=59652

reactos/drivers/sac/driver/chanmgr.c

index bf65042..a005a1e 100644 (file)
@@ -396,7 +396,7 @@ ChanMgrCreateChannel(OUT PSAC_CHANNEL *Channel,
         {
             /* Free slot found, attempt to use it */
             ASSERT(!CHANNEL_SLOT_IS_IN_USE(i));
         {
             /* Free slot found, attempt to use it */
             ASSERT(!CHANNEL_SLOT_IS_IN_USE(i));
-            _InterlockedCompareExchangePointer((void* volatile*)&ChannelArray[i], NewChannel, NULL);
+            _InterlockedCompareExchange((PLONG)&ChannelArray[i], (LONG)NewChannel, 0);
             if (ChannelArray[i] == NewChannel) break;
         }
     }
             if (ChannelArray[i] == NewChannel) break;
         }
     }