Author: tkreuzer
Date: Mon May 12 23:18:07 2008
New Revision: 33488
URL:
http://svn.reactos.org/svn/reactos?rev=33488&view=rev
Log:
- fix a pointer to INT cast
- use InterlockedExchangePointer instead of InterlockedExchange for a pointer
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/msgqueue.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/msgqueue.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/msgqueue.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/msgqueue.c [iso-8859-1] Mon May 12
23:18:07 2008
@@ -868,7 +868,7 @@
if (Message->HookMessage)
{
Result = co_HOOK_CallHooks(Message->Msg.message,
- (INT) Message->Msg.hwnd,
+ (INT)(INT_PTR)Message->Msg.hwnd,
Message->Msg.wParam,
Message->Msg.lParam);
}
@@ -1499,9 +1499,9 @@
PDESKTOP_OBJECT desk;
/* remove the message queue from any desktops */
- if ((desk = (PDESKTOP_OBJECT)InterlockedExchange((LONG*)&MessageQueue->Desktop,
0)))
- {
- InterlockedExchange((LONG*)&desk->ActiveMessageQueue, 0);
+ if ((desk = InterlockedExchangePointer((PVOID*)&MessageQueue->Desktop, 0)))
+ {
+ InterlockedExchangePointer((PVOID*)&desk->ActiveMessageQueue, 0);
IntDereferenceMessageQueue(MessageQueue);
}