mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 14:10:32 +00:00
user32: Make sure that SendInput always initializes the time field.
This commit is contained in:
parent
84972be4aa
commit
88900f429a
@ -167,7 +167,7 @@ void WINAPI keybd_event( BYTE bVk, BYTE bScan,
|
||||
input.u.ki.wVk = bVk;
|
||||
input.u.ki.wScan = bScan;
|
||||
input.u.ki.dwFlags = dwFlags;
|
||||
input.u.ki.time = GetTickCount();
|
||||
input.u.ki.time = 0;
|
||||
input.u.ki.dwExtraInfo = dwExtraInfo;
|
||||
SendInput( 1, &input, sizeof(input) );
|
||||
}
|
||||
@ -186,7 +186,7 @@ void WINAPI mouse_event( DWORD dwFlags, DWORD dx, DWORD dy,
|
||||
input.u.mi.dy = dy;
|
||||
input.u.mi.mouseData = dwData;
|
||||
input.u.mi.dwFlags = dwFlags;
|
||||
input.u.mi.time = GetCurrentTime();
|
||||
input.u.mi.time = 0;
|
||||
input.u.mi.dwExtraInfo = dwExtraInfo;
|
||||
SendInput( 1, &input, sizeof(input) );
|
||||
}
|
||||
|
@ -1158,6 +1158,8 @@ void X11DRV_send_keyboard_input( WORD wVk, WORD wScan, DWORD event_flags, DWORD
|
||||
WORD flags, wVkStripped, wVkL, wVkR, vk_hook = wVk;
|
||||
LPARAM lParam = 0;
|
||||
|
||||
if (!time) time = GetTickCount();
|
||||
|
||||
wVk = LOBYTE(wVk);
|
||||
flags = LOBYTE(wScan);
|
||||
|
||||
|
@ -345,6 +345,8 @@ void X11DRV_send_mouse_input( HWND hwnd, DWORD flags, DWORD x, DWORD y,
|
||||
{
|
||||
POINT pt;
|
||||
|
||||
if (!time) time = GetTickCount();
|
||||
|
||||
if (flags & MOUSEEVENTF_MOVE && flags & MOUSEEVENTF_ABSOLUTE)
|
||||
{
|
||||
if (injected_flags & LLMHF_INJECTED)
|
||||
|
Loading…
Reference in New Issue
Block a user