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
cbf967d6
Commit
cbf967d6
authored
Dec 30, 2010
by
André Hentschel
Committed by
Alexandre Julliard
Dec 31, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Don't test function directly when reporting GetLastError().
parent
0fb2994f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
win.c
dlls/user32/tests/win.c
+9
-4
No files found.
dlls/user32/tests/win.c
View file @
cbf967d6
...
...
@@ -2586,7 +2586,8 @@ static void test_SetForegroundWindow(HWND hwnd)
hwnd2
=
GetForegroundWindow
();
ok
(
hwnd2
==
hwnd
,
"Wrong foreground window %p
\n
"
,
hwnd2
);
ok
(
SetForegroundWindow
(
GetDesktopWindow
()
),
"SetForegroundWindow(desktop) error: %d
\n
"
,
GetLastError
());
ret
=
SetForegroundWindow
(
GetDesktopWindow
()
);
ok
(
ret
,
"SetForegroundWindow(desktop) error: %d
\n
"
,
GetLastError
());
hwnd2
=
GetForegroundWindow
();
ok
(
hwnd2
!=
hwnd
,
"Wrong foreground window %p
\n
"
,
hwnd2
);
...
...
@@ -4529,10 +4530,12 @@ static void test_CreateWindow(void)
HMENU
hmenu
;
RECT
rc
,
rc_minmax
;
MINMAXINFO
minmax
;
BOOL
res
;
#define expect_menu(window, menu) \
SetLastError(0xdeadbeef); \
ok(GetMenu(window) == (HMENU)menu, "GetMenu error %d\n", GetLastError())
res = (GetMenu(window) == (HMENU)menu); \
ok(res, "GetMenu error %d\n", GetLastError())
#define expect_style(window, style)\
ok((ULONG)GetWindowLong(window, GWL_STYLE) == (style), "expected style %x != %x\n", (LONG)(style), GetWindowLong(window, GWL_STYLE))
...
...
@@ -4551,7 +4554,8 @@ static void test_CreateWindow(void)
assert
(
parent
!=
0
);
SetLastError
(
0xdeadbeef
);
ok
(
IsMenu
(
hmenu
),
"IsMenu error %d
\n
"
,
GetLastError
());
res
=
IsMenu
(
hmenu
);
ok
(
res
,
"IsMenu error %d
\n
"
,
GetLastError
());
/* WS_CHILD */
SetLastError
(
0xdeadbeef
);
...
...
@@ -6051,7 +6055,8 @@ static void test_thick_child_size(HWND parentWindow)
cls
.
lpszMenuName
=
NULL
;
cls
.
lpszClassName
=
className
;
SetLastError
(
0xdeadbeef
);
ok
(
RegisterClassA
(
&
cls
),
"RegisterClassA failed, error: %u
\n
"
,
GetLastError
());
success
=
RegisterClassA
(
&
cls
);
ok
(
success
,
"RegisterClassA failed, error: %u
\n
"
,
GetLastError
());
for
(
i
=
0
;
i
<
NUMBER_OF_THICK_CHILD_TESTS
;
i
++
)
{
...
...
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