X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=reactos%2Fsubsystems%2Fwin32%2Fwin32k%2Fntuser%2Fmsgqueue.c;fp=reactos%2Fsubsystems%2Fwin32%2Fwin32k%2Fntuser%2Fmsgqueue.c;h=f41292860390b218ad899cdbddf0a0292f82ca61;hp=b0c9713cc6fae81e03cb6b04bccba038ff9fae74;hb=a508886eb09c25c1b67f5eee1203275fa350bb5a;hpb=a5bdcfa727933929b5b2b206dac6ba7b4d47fa28 diff --git a/reactos/subsystems/win32/win32k/ntuser/msgqueue.c b/reactos/subsystems/win32/win32k/ntuser/msgqueue.c index b0c9713cc6f..f4129286039 100644 --- a/reactos/subsystems/win32/win32k/ntuser/msgqueue.c +++ b/reactos/subsystems/win32/win32k/ntuser/msgqueue.c @@ -94,7 +94,7 @@ IntTopLevelWindowFromPoint(INT x, INT y) if ((pWnd->style & WS_VISIBLE) && IntPtInWindow(pWnd, x, y)) return pWnd; } - + /* Window has not been found */ return NULL; } @@ -177,10 +177,10 @@ int UserShowCursor(BOOL bShow) pti = PsGetCurrentThreadWin32Thread(); MessageQueue = pti->MessageQueue; - + /* Update counter */ MessageQueue->ShowingCursor += bShow ? 1 : -1; - + /* Check for trivial cases */ if ((bShow && MessageQueue->ShowingCursor != 0) || (!bShow && MessageQueue->ShowingCursor != -1)) @@ -189,7 +189,7 @@ int UserShowCursor(BOOL bShow) internally to check if cursor is visible */ return MessageQueue->ShowingCursor; } - + /* Check if cursor is above window owned by this MessageQueue */ pWnd = IntTopLevelWindowFromPoint(gpsi->ptCursor.x, gpsi->ptCursor.y); if (pWnd && pWnd->head.pti->MessageQueue == MessageQueue) @@ -206,7 +206,7 @@ int UserShowCursor(BOOL bShow) GreMovePointer(hdcScreen, -1, -1); TRACE("Removing pointer!\n"); } - + /* Update global info */ IntGetSysCursorInfo()->ShowingCursor = MessageQueue->ShowingCursor; } @@ -1382,7 +1382,7 @@ BOOL co_IntProcessMouseMessage(MSG* msg, BOOL* RemoveMessages, UINT first, UINT if ((msg->message == clk_msg.message) && (msg->hwnd == clk_msg.hwnd) && (msg->wParam == clk_msg.wParam) && - (msg->time - clk_msg.time < gspv.iDblClickTime) && + ((msg->time - clk_msg.time) < (ULONG)gspv.iDblClickTime) && (abs(msg->pt.x - clk_msg.pt.x) < UserGetSystemMetrics(SM_CXDOUBLECLK)/2) && (abs(msg->pt.y - clk_msg.pt.y) < UserGetSystemMetrics(SM_CYDOUBLECLK)/2)) { @@ -1999,7 +1999,7 @@ MsqCleanupMessageQueue(PUSER_MESSAGE_QUEUE MessageQueue) MessageQueue->nCntsQBits[QSRosPostMessage] = 0; MessageQueue->nCntsQBits[QSRosSendMessage] = 0; MessageQueue->nCntsQBits[QSRosHotKey] = 0; - + if (MessageQueue->CursorObject) { PCURICON_OBJECT pCursor = MessageQueue->CursorObject; @@ -2020,7 +2020,7 @@ MsqCleanupMessageQueue(PUSER_MESSAGE_QUEUE MessageQueue) UserDereferenceObject(pCursor); } - + } PUSER_MESSAGE_QUEUE FASTCALL @@ -2183,7 +2183,7 @@ NtUserGetKeyState(INT key) UserLeave(); - return Ret; + return (SHORT)Ret; }