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
efd0b9ae
Commit
efd0b9ae
authored
Mar 17, 2008
by
Reece H. Dunn
Committed by
Alexandre Julliard
Mar 17, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: HiliteMenuItem fails if an invalid window handle is passed to it.
parent
021019ff
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
menu.c
dlls/user32/tests/menu.c
+15
-0
No files found.
dlls/user32/tests/menu.c
View file @
efd0b9ae
...
...
@@ -1874,6 +1874,21 @@ static void test_menu_hilitemenuitem( void )
AppendMenu
(
hPopupMenu
,
MF_STRING
,
102
,
"Item 2"
);
AppendMenu
(
hPopupMenu
,
MF_STRING
,
103
,
"Item 3"
);
ok
(
!
(
GetMenuState
(
hPopupMenu
,
1
,
MF_BYPOSITION
)
&
MF_HILITE
),
"HiliteMenuItem: Item 2 is hilited
\n
"
);
SetLastError
(
0xdeadbeef
);
ok
(
!
HiliteMenuItem
(
NULL
,
hPopupMenu
,
1
,
MF_HILITE
),
"HiliteMenuItem: call should have failed.
\n
"
);
todo_wine
{
ok
(
GetLastError
()
==
ERROR_INVALID_WINDOW_HANDLE
,
"HiliteMenuItem: expected error ERROR_INVALID_WINDOW_HANDLE, got: %d
\n
"
,
GetLastError
());
}
ok
(
!
(
GetMenuState
(
hPopupMenu
,
1
,
MF_BYPOSITION
)
&
MF_HILITE
),
"HiliteMenuItem: Item 2 is hilited
\n
"
);
HiliteMenuItem
(
NULL
,
hPopupMenu
,
0
,
MF_HILITE
);
HiliteMenuItem
(
NULL
,
hPopupMenu
,
1
,
MF_HILITE
);
HiliteMenuItem
(
NULL
,
hPopupMenu
,
2
,
MF_HILITE
);
...
...
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