mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 12:13:10 +00:00
- fix a pointer to INT cast
- use InterlockedExchangePointer instead of InterlockedExchange for a pointer svn path=/trunk/; revision=33488
This commit is contained in:
parent
083c5dcbd2
commit
27ff35dcc8
1 changed files with 3 additions and 3 deletions
|
@ -868,7 +868,7 @@ co_MsqDispatchOneSentMessage(PUSER_MESSAGE_QUEUE MessageQueue)
|
||||||
if (Message->HookMessage)
|
if (Message->HookMessage)
|
||||||
{
|
{
|
||||||
Result = co_HOOK_CallHooks(Message->Msg.message,
|
Result = co_HOOK_CallHooks(Message->Msg.message,
|
||||||
(INT) Message->Msg.hwnd,
|
(INT)(INT_PTR)Message->Msg.hwnd,
|
||||||
Message->Msg.wParam,
|
Message->Msg.wParam,
|
||||||
Message->Msg.lParam);
|
Message->Msg.lParam);
|
||||||
}
|
}
|
||||||
|
@ -1499,9 +1499,9 @@ MsqDestroyMessageQueue(PUSER_MESSAGE_QUEUE MessageQueue)
|
||||||
PDESKTOP_OBJECT desk;
|
PDESKTOP_OBJECT desk;
|
||||||
|
|
||||||
/* remove the message queue from any desktops */
|
/* remove the message queue from any desktops */
|
||||||
if ((desk = (PDESKTOP_OBJECT)InterlockedExchange((LONG*)&MessageQueue->Desktop, 0)))
|
if ((desk = InterlockedExchangePointer((PVOID*)&MessageQueue->Desktop, 0)))
|
||||||
{
|
{
|
||||||
InterlockedExchange((LONG*)&desk->ActiveMessageQueue, 0);
|
InterlockedExchangePointer((PVOID*)&desk->ActiveMessageQueue, 0);
|
||||||
IntDereferenceMessageQueue(MessageQueue);
|
IntDereferenceMessageQueue(MessageQueue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue