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
a91b0e45
Commit
a91b0e45
authored
Feb 23, 2011
by
Marcus Meissner
Committed by
Alexandre Julliard
Feb 23, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Remove side effect code out of asserts() (Coverity).
parent
89e66208
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
9 deletions
+18
-9
menu.c
dlls/user32/tests/menu.c
+18
-9
No files found.
dlls/user32/tests/menu.c
View file @
a91b0e45
...
...
@@ -2038,6 +2038,7 @@ static void test_menu_input(void) {
HINSTANCE
hInstance
=
GetModuleHandleA
(
NULL
);
HANDLE
hThread
,
hWnd
;
DWORD
tid
;
ATOM
aclass
;
if
(
!
pSendInput
)
{
...
...
@@ -2055,11 +2056,14 @@ static void test_menu_input(void) {
wclass
.
lpszMenuName
=
0
;
wclass
.
cbClsExtra
=
0
;
wclass
.
cbWndExtra
=
0
;
assert
(
RegisterClassA
(
&
wclass
));
assert
(
hWnd
=
CreateWindowA
(
wclass
.
lpszClassName
,
"MenuTest"
,
WS_OVERLAPPEDWINDOW
,
CW_USEDEFAULT
,
0
,
400
,
200
,
NULL
,
NULL
,
hInstance
,
NULL
)
);
aclass
=
RegisterClassA
(
&
wclass
);
ok
(
aclass
,
"MenuTest class not created
\n
"
);
if
(
!
aclass
)
return
;
hWnd
=
CreateWindowA
(
wclass
.
lpszClassName
,
"MenuTest"
,
WS_OVERLAPPEDWINDOW
,
CW_USEDEFAULT
,
0
,
400
,
200
,
NULL
,
NULL
,
hInstance
,
NULL
);
ok
(
hWnd
!=
NULL
,
"MenuTest window not created
\n
"
);
if
(
!
hWnd
)
return
;
/* fixed menus */
hMenus
[
3
]
=
CreatePopupMenu
();
AppendMenu
(
hMenus
[
3
],
MF_STRING
,
0
,
"&Enabled"
);
...
...
@@ -2125,6 +2129,7 @@ static void test_menu_hilitemenuitem( void )
HMENU
hMenu
,
hPopupMenu
;
WNDCLASSA
wclass
;
HWND
hWnd
;
ATOM
aclass
;
wclass
.
lpszClassName
=
"HiliteMenuTestClass"
;
wclass
.
style
=
CS_HREDRAW
|
CS_VREDRAW
;
...
...
@@ -2136,10 +2141,14 @@ static void test_menu_hilitemenuitem( void )
wclass
.
lpszMenuName
=
0
;
wclass
.
cbClsExtra
=
0
;
wclass
.
cbWndExtra
=
0
;
assert
(
RegisterClassA
(
&
wclass
));
assert
(
hWnd
=
CreateWindowA
(
wclass
.
lpszClassName
,
"HiliteMenuTest"
,
WS_OVERLAPPEDWINDOW
,
CW_USEDEFAULT
,
0
,
400
,
200
,
NULL
,
NULL
,
wclass
.
hInstance
,
NULL
)
);
aclass
=
RegisterClassA
(
&
wclass
);
ok
(
aclass
,
"HiliteMenuTest class could not be created
\n
"
);
if
(
!
aclass
)
return
;
hWnd
=
CreateWindowA
(
wclass
.
lpszClassName
,
"HiliteMenuTest"
,
WS_OVERLAPPEDWINDOW
,
CW_USEDEFAULT
,
0
,
400
,
200
,
NULL
,
NULL
,
wclass
.
hInstance
,
NULL
);
ok
(
hWnd
!=
NULL
,
"HiliteMenuTest window could not be created
\n
"
);
if
(
!
hWnd
)
return
;
hMenu
=
CreateMenu
();
hPopupMenu
=
CreatePopupMenu
();
...
...
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