Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
88900f42
Commit
88900f42
authored
Sep 22, 2010
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Sep 22, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Make sure that SendInput always initializes the time field.
parent
84972be4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
input.c
dlls/user32/input.c
+2
-2
keyboard.c
dlls/winex11.drv/keyboard.c
+2
-0
mouse.c
dlls/winex11.drv/mouse.c
+2
-0
No files found.
dlls/user32/input.c
View file @
88900f42
...
@@ -167,7 +167,7 @@ void WINAPI keybd_event( BYTE bVk, BYTE bScan,
...
@@ -167,7 +167,7 @@ void WINAPI keybd_event( BYTE bVk, BYTE bScan,
input
.
u
.
ki
.
wVk
=
bVk
;
input
.
u
.
ki
.
wVk
=
bVk
;
input
.
u
.
ki
.
wScan
=
bScan
;
input
.
u
.
ki
.
wScan
=
bScan
;
input
.
u
.
ki
.
dwFlags
=
dwFlags
;
input
.
u
.
ki
.
dwFlags
=
dwFlags
;
input
.
u
.
ki
.
time
=
GetTickCount
()
;
input
.
u
.
ki
.
time
=
0
;
input
.
u
.
ki
.
dwExtraInfo
=
dwExtraInfo
;
input
.
u
.
ki
.
dwExtraInfo
=
dwExtraInfo
;
SendInput
(
1
,
&
input
,
sizeof
(
input
)
);
SendInput
(
1
,
&
input
,
sizeof
(
input
)
);
}
}
...
@@ -186,7 +186,7 @@ void WINAPI mouse_event( DWORD dwFlags, DWORD dx, DWORD dy,
...
@@ -186,7 +186,7 @@ void WINAPI mouse_event( DWORD dwFlags, DWORD dx, DWORD dy,
input
.
u
.
mi
.
dy
=
dy
;
input
.
u
.
mi
.
dy
=
dy
;
input
.
u
.
mi
.
mouseData
=
dwData
;
input
.
u
.
mi
.
mouseData
=
dwData
;
input
.
u
.
mi
.
dwFlags
=
dwFlags
;
input
.
u
.
mi
.
dwFlags
=
dwFlags
;
input
.
u
.
mi
.
time
=
GetCurrentTime
()
;
input
.
u
.
mi
.
time
=
0
;
input
.
u
.
mi
.
dwExtraInfo
=
dwExtraInfo
;
input
.
u
.
mi
.
dwExtraInfo
=
dwExtraInfo
;
SendInput
(
1
,
&
input
,
sizeof
(
input
)
);
SendInput
(
1
,
&
input
,
sizeof
(
input
)
);
}
}
...
...
dlls/winex11.drv/keyboard.c
View file @
88900f42
...
@@ -1158,6 +1158,8 @@ void X11DRV_send_keyboard_input( WORD wVk, WORD wScan, DWORD event_flags, DWORD
...
@@ -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
;
WORD
flags
,
wVkStripped
,
wVkL
,
wVkR
,
vk_hook
=
wVk
;
LPARAM
lParam
=
0
;
LPARAM
lParam
=
0
;
if
(
!
time
)
time
=
GetTickCount
();
wVk
=
LOBYTE
(
wVk
);
wVk
=
LOBYTE
(
wVk
);
flags
=
LOBYTE
(
wScan
);
flags
=
LOBYTE
(
wScan
);
...
...
dlls/winex11.drv/mouse.c
View file @
88900f42
...
@@ -345,6 +345,8 @@ void X11DRV_send_mouse_input( HWND hwnd, DWORD flags, DWORD x, DWORD y,
...
@@ -345,6 +345,8 @@ void X11DRV_send_mouse_input( HWND hwnd, DWORD flags, DWORD x, DWORD y,
{
{
POINT
pt
;
POINT
pt
;
if
(
!
time
)
time
=
GetTickCount
();
if
(
flags
&
MOUSEEVENTF_MOVE
&&
flags
&
MOUSEEVENTF_ABSOLUTE
)
if
(
flags
&
MOUSEEVENTF_MOVE
&&
flags
&
MOUSEEVENTF_ABSOLUTE
)
{
{
if
(
injected_flags
&
LLMHF_INJECTED
)
if
(
injected_flags
&
LLMHF_INJECTED
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment