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
66bd3d42
Commit
66bd3d42
authored
Mar 02, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Mar 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Fix some test failures on Win98/WinME.
parent
2619dda6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
menu.c
dlls/user32/tests/menu.c
+18
-6
No files found.
dlls/user32/tests/menu.c
View file @
66bd3d42
...
...
@@ -2447,13 +2447,17 @@ static void test_menu_getmenuinfo(void)
ret
=
pGetMenuInfo
(
hmenu
,
NULL
);
gle
=
GetLastError
();
ok
(
!
ret
,
"GetMenuInfo() should have failed
\n
"
);
ok
(
gle
==
ERROR_INVALID_PARAMETER
,
"GetMenuInfo() error got %u expected %u
\n
"
,
gle
,
ERROR_INVALID_PARAMETER
);
ok
(
gle
==
ERROR_INVALID_PARAMETER
||
broken
(
gle
==
0xdeadbeef
),
/* Win98, WinME */
"GetMenuInfo() error got %u expected %u
\n
"
,
gle
,
ERROR_INVALID_PARAMETER
);
SetLastError
(
0xdeadbeef
);
mi
.
cbSize
=
0
;
ret
=
pGetMenuInfo
(
hmenu
,
&
mi
);
gle
=
GetLastError
();
ok
(
!
ret
,
"GetMenuInfo() should have failed
\n
"
);
ok
(
gle
==
ERROR_INVALID_PARAMETER
,
"GetMenuInfo() error got %u expected %u
\n
"
,
gle
,
ERROR_INVALID_PARAMETER
);
ok
(
gle
==
ERROR_INVALID_PARAMETER
||
broken
(
gle
==
0xdeadbeef
),
/* Win98, WinME */
"GetMenuInfo() error got %u expected %u
\n
"
,
gle
,
ERROR_INVALID_PARAMETER
);
SetLastError
(
0xdeadbeef
);
mi
.
cbSize
=
sizeof
(
MENUINFO
);
ret
=
pGetMenuInfo
(
hmenu
,
&
mi
);
...
...
@@ -2465,7 +2469,9 @@ static void test_menu_getmenuinfo(void)
ret
=
pGetMenuInfo
(
NULL
,
&
mi
);
gle
=
GetLastError
();
ok
(
!
ret
,
"GetMenuInfo() should have failed
\n
"
);
ok
(
gle
==
ERROR_INVALID_PARAMETER
,
"GetMenuInfo() error got %u expected %u
\n
"
,
gle
,
ERROR_INVALID_PARAMETER
);
ok
(
gle
==
ERROR_INVALID_PARAMETER
||
broken
(
gle
==
0xdeadbeef
),
/* Win98, WinME */
"GetMenuInfo() error got %u expected %u
\n
"
,
gle
,
ERROR_INVALID_PARAMETER
);
/* clean up */
DestroyMenu
(
hmenu
);
return
;
...
...
@@ -2492,13 +2498,17 @@ static void test_menu_setmenuinfo(void)
ret
=
pSetMenuInfo
(
hmenu
,
NULL
);
gle
=
GetLastError
();
ok
(
!
ret
,
"SetMenuInfo() should have failed
\n
"
);
ok
(
gle
==
ERROR_INVALID_PARAMETER
,
"SetMenuInfo() error got %u expected %u
\n
"
,
gle
,
ERROR_INVALID_PARAMETER
);
ok
(
gle
==
ERROR_INVALID_PARAMETER
||
broken
(
gle
==
0xdeadbeef
),
/* Win98, WinME */
"SetMenuInfo() error got %u expected %u
\n
"
,
gle
,
ERROR_INVALID_PARAMETER
);
SetLastError
(
0xdeadbeef
);
mi
.
cbSize
=
0
;
ret
=
pSetMenuInfo
(
hmenu
,
&
mi
);
gle
=
GetLastError
();
ok
(
!
ret
,
"SetMenuInfo() should have failed
\n
"
);
ok
(
gle
==
ERROR_INVALID_PARAMETER
,
"SetMenuInfo() error got %u expected %u
\n
"
,
gle
,
ERROR_INVALID_PARAMETER
);
ok
(
gle
==
ERROR_INVALID_PARAMETER
||
broken
(
gle
==
0xdeadbeef
),
/* Win98, WinME */
"SetMenuInfo() error got %u expected %u
\n
"
,
gle
,
ERROR_INVALID_PARAMETER
);
SetLastError
(
0xdeadbeef
);
mi
.
cbSize
=
sizeof
(
MENUINFO
);
ret
=
pSetMenuInfo
(
hmenu
,
&
mi
);
...
...
@@ -2510,7 +2520,9 @@ static void test_menu_setmenuinfo(void)
ret
=
pSetMenuInfo
(
NULL
,
&
mi
);
gle
=
GetLastError
();
ok
(
!
ret
,
"SetMenuInfo() should have failed
\n
"
);
ok
(
gle
==
ERROR_INVALID_PARAMETER
,
"SetMenuInfo() error got %u expected %u
\n
"
,
gle
,
ERROR_INVALID_PARAMETER
);
ok
(
gle
==
ERROR_INVALID_PARAMETER
||
broken
(
gle
==
0xdeadbeef
),
/* Win98, WinME */
"SetMenuInfo() error got %u expected %u
\n
"
,
gle
,
ERROR_INVALID_PARAMETER
);
/* functional tests */
/* menu and submenu should have the CHECKORBMP style bit cleared */
SetLastError
(
0xdeadbeef
);
...
...
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