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
faf49ed3
Commit
faf49ed3
authored
Jul 21, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Use nameless unions/structs.
parent
e9e7301b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
15 deletions
+15
-15
input.c
dlls/user32/tests/input.c
+6
-6
win.c
dlls/user32/tests/win.c
+6
-6
winstation.c
dlls/user32/tests/winstation.c
+3
-3
No files found.
dlls/user32/tests/input.c
View file @
faf49ed3
...
...
@@ -3713,13 +3713,13 @@ static void simulate_click(BOOL left, int x, int y)
SetCursorPos
(
x
,
y
);
memset
(
input
,
0
,
sizeof
(
input
));
input
[
0
].
type
=
INPUT_MOUSE
;
U
(
input
[
0
])
.
mi
.
dx
=
x
;
U
(
input
[
0
])
.
mi
.
dy
=
y
;
U
(
input
[
0
])
.
mi
.
dwFlags
=
left
?
MOUSEEVENTF_LEFTDOWN
:
MOUSEEVENTF_RIGHTDOWN
;
input
[
0
]
.
mi
.
dx
=
x
;
input
[
0
]
.
mi
.
dy
=
y
;
input
[
0
]
.
mi
.
dwFlags
=
left
?
MOUSEEVENTF_LEFTDOWN
:
MOUSEEVENTF_RIGHTDOWN
;
input
[
1
].
type
=
INPUT_MOUSE
;
U
(
input
[
1
])
.
mi
.
dx
=
x
;
U
(
input
[
1
])
.
mi
.
dy
=
y
;
U
(
input
[
1
])
.
mi
.
dwFlags
=
left
?
MOUSEEVENTF_LEFTUP
:
MOUSEEVENTF_RIGHTUP
;
input
[
1
]
.
mi
.
dx
=
x
;
input
[
1
]
.
mi
.
dy
=
y
;
input
[
1
]
.
mi
.
dwFlags
=
left
?
MOUSEEVENTF_LEFTUP
:
MOUSEEVENTF_RIGHTUP
;
events_no
=
SendInput
(
2
,
input
,
sizeof
(
input
[
0
]));
ok
(
events_no
==
2
,
"SendInput returned %d
\n
"
,
events_no
);
}
...
...
dlls/user32/tests/win.c
View file @
faf49ed3
...
...
@@ -10201,13 +10201,13 @@ static void simulate_click(int x, int y)
SetCursorPos
(
x
,
y
);
memset
(
input
,
0
,
sizeof
(
input
));
input
[
0
].
type
=
INPUT_MOUSE
;
U
(
input
[
0
])
.
mi
.
dx
=
x
;
U
(
input
[
0
])
.
mi
.
dy
=
y
;
U
(
input
[
0
])
.
mi
.
dwFlags
=
MOUSEEVENTF_LEFTDOWN
;
input
[
0
]
.
mi
.
dx
=
x
;
input
[
0
]
.
mi
.
dy
=
y
;
input
[
0
]
.
mi
.
dwFlags
=
MOUSEEVENTF_LEFTDOWN
;
input
[
1
].
type
=
INPUT_MOUSE
;
U
(
input
[
1
])
.
mi
.
dx
=
x
;
U
(
input
[
1
])
.
mi
.
dy
=
y
;
U
(
input
[
1
])
.
mi
.
dwFlags
=
MOUSEEVENTF_LEFTUP
;
input
[
1
]
.
mi
.
dx
=
x
;
input
[
1
]
.
mi
.
dy
=
y
;
input
[
1
]
.
mi
.
dwFlags
=
MOUSEEVENTF_LEFTUP
;
events_no
=
SendInput
(
2
,
input
,
sizeof
(
input
[
0
]));
ok
(
events_no
==
2
,
"SendInput returned %d
\n
"
,
events_no
);
SetCursorPos
(
pt
.
x
,
pt
.
y
);
...
...
dlls/user32/tests/winstation.c
View file @
faf49ed3
...
...
@@ -595,9 +595,9 @@ static void test_inputdesktop(void)
INPUT
inputs
[
1
];
inputs
[
0
].
type
=
INPUT_KEYBOARD
;
U
(
inputs
[
0
])
.
ki
.
wVk
=
0
;
U
(
inputs
[
0
])
.
ki
.
wScan
=
0x3c0
;
U
(
inputs
[
0
])
.
ki
.
dwFlags
=
KEYEVENTF_UNICODE
;
inputs
[
0
]
.
ki
.
wVk
=
0
;
inputs
[
0
]
.
ki
.
wScan
=
0x3c0
;
inputs
[
0
]
.
ki
.
dwFlags
=
KEYEVENTF_UNICODE
;
/* OpenInputDesktop creates new handles for each calls */
old_input_desk
=
OpenInputDesktop
(
0
,
FALSE
,
DESKTOP_ALL_ACCESS
);
...
...
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