Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
80fe2fae
Commit
80fe2fae
authored
Jul 21, 2008
by
Huw Davies
Committed by
Alexandre Julliard
Jul 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Don't send the menu clicks if we can't retrieve the item rect.
parent
e9b1a406
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
menu.c
dlls/user32/tests/menu.c
+4
-4
No files found.
dlls/user32/tests/menu.c
View file @
80fe2fae
...
...
@@ -1691,7 +1691,7 @@ static struct menu_mouse_tests_s {
static
void
send_key
(
WORD
wVk
)
{
TEST_INPUT
i
[
2
];
memset
(
&
i
,
0
,
2
*
sizeof
(
INPUT
));
memset
(
i
,
0
,
sizeof
(
i
));
i
[
0
].
type
=
i
[
1
].
type
=
INPUT_KEYBOARD
;
i
[
0
].
u
.
ki
.
wVk
=
i
[
1
].
u
.
ki
.
wVk
=
wVk
;
i
[
1
].
u
.
ki
.
dwFlags
=
KEYEVENTF_KEYUP
;
...
...
@@ -1706,10 +1706,10 @@ static void click_menu(HANDLE hWnd, struct menu_item_pair_s *mi)
RECT
r
;
int
screen_w
=
GetSystemMetrics
(
SM_CXSCREEN
);
int
screen_h
=
GetSystemMetrics
(
SM_CYSCREEN
);
BOOL
ret
=
GetMenuItemRect
(
mi
->
uMenu
>
2
?
NULL
:
hWnd
,
hMenu
,
mi
->
uItem
,
&
r
);
if
(
!
ret
)
return
;
GetMenuItemRect
(
mi
->
uMenu
>
2
?
NULL
:
hWnd
,
hMenu
,
mi
->
uItem
,
&
r
);
memset
(
&
i
,
0
,
3
*
sizeof
(
INPUT
));
memset
(
i
,
0
,
sizeof
(
i
));
i
[
0
].
type
=
i
[
1
].
type
=
i
[
2
].
type
=
INPUT_MOUSE
;
i
[
0
].
u
.
mi
.
dx
=
i
[
1
].
u
.
mi
.
dx
=
i
[
2
].
u
.
mi
.
dx
=
((
r
.
left
+
5
)
*
65535
)
/
screen_w
;
...
...
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