Author: tkreuzer
Date: Fri Jul 18 18:47:33 2008
New Revision: 34581
URL:
http://svn.reactos.org/svn/reactos?rev=34581&view=rev
Log:
RtlpCreateCriticalSectionSem: use InterlockedCompareExchangePointer instead of
InterlockedCompareExchange for a handle
Modified:
trunk/reactos/lib/rtl/critical.c
Modified: trunk/reactos/lib/rtl/critical.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/critical.c?rev=345…
==============================================================================
--- trunk/reactos/lib/rtl/critical.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/critical.c [iso-8859-1] Fri Jul 18 18:47:33 2008
@@ -65,8 +65,8 @@
}
DPRINT("Created Event: %p \n", hNewEvent);
- if ((hEvent =
(HANDLE)_InterlockedCompareExchange((PLONG)&CriticalSection->LockSemaphore,
- (LONG)hNewEvent,
+ if ((hEvent =
(HANDLE)_InterlockedCompareExchangePointer((PVOID*)&CriticalSection->LockSemaphore,
+ (PVOID)hNewEvent,
0))) {
/* Some just created an event */