[NTUSER] Fix XBUTTON1 reported as XBUTTON2 on WM_XBUTTONUP (#9120)

Bug was introduced in https://github.com/reactos/reactos/commit/9e2f17bd8e32da6c9c3bfd029927fb9d44971773 (r54227).
This commit is contained in:
Ahmed Arif
2026-06-08 22:24:13 +03:00
committed by GitHub
parent 129623416c
commit 3511472586
+1 -1
View File
@@ -326,7 +326,7 @@ UserSendMouseInput(MOUSEINPUT *pmi, BOOL bInjected)
SET_KEY_DOWN(gafAsyncKeyState, VK_XBUTTON1, FALSE);
pCurInfo->ButtonsDown &= ~MK_XBUTTON1;
Msg.wParam &= ~MK_XBUTTON1;
Msg.wParam |= MAKEWPARAM(0, XBUTTON2);
Msg.wParam |= MAKEWPARAM(0, XBUTTON1);
co_MsqInsertMouseMessage(&Msg, bInjected, pmi->dwExtraInfo, TRUE);
}
if (pmi->mouseData & XBUTTON2)