From 002291ac9392e493f73d15ff00b7aa6edd09b302 Mon Sep 17 00:00:00 2001 From: Alex Ionescu Date: Tue, 6 Aug 2013 01:38:13 +0000 Subject: [PATCH] [SACDRV]: Another attempt to make MSVC happy. svn path=/trunk/; revision=59652 --- reactos/drivers/sac/driver/chanmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/drivers/sac/driver/chanmgr.c b/reactos/drivers/sac/driver/chanmgr.c index bf65042a3ee..a005a1e98c8 100644 --- a/reactos/drivers/sac/driver/chanmgr.c +++ b/reactos/drivers/sac/driver/chanmgr.c @@ -396,7 +396,7 @@ ChanMgrCreateChannel(OUT PSAC_CHANNEL *Channel, { /* 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; } } -- 2.17.1