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
cc91ba6d
Commit
cc91ba6d
authored
Feb 03, 2022
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 03, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Actually test ShowWindow() return value.
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
55767469
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
win.c
dlls/user32/tests/win.c
+3
-3
No files found.
dlls/user32/tests/win.c
View file @
cc91ba6d
...
...
@@ -7232,7 +7232,7 @@ static void test_ShowWindow(void)
ok
(
EqualRect
(
&
rc
,
&
rcNonClient
),
"expected %s, got %s
\n
"
,
wine_dbgstr_rect
(
&
rcNonClient
),
wine_dbgstr_rect
(
&
rc
));
ShowWindow
(
hwnd
,
SW_RESTORE
);
ret
=
ShowWindow
(
hwnd
,
SW_RESTORE
);
ok
(
ret
,
"not expected ret: %lu
\n
"
,
ret
);
style
=
GetWindowLongA
(
hwnd
,
GWL_STYLE
);
ok
(
!
(
style
&
WS_DISABLED
),
"window should not be disabled
\n
"
);
...
...
@@ -7246,7 +7246,7 @@ static void test_ShowWindow(void)
ok
(
EqualRect
(
&
rcClient
,
&
rc
),
"expected %s, got %s
\n
"
,
wine_dbgstr_rect
(
&
rcClient
),
wine_dbgstr_rect
(
&
rc
));
ShowWindow
(
hwnd
,
SW_MAXIMIZE
);
ret
=
ShowWindow
(
hwnd
,
SW_MAXIMIZE
);
ok
(
ret
,
"not expected ret: %lu
\n
"
,
ret
);
style
=
GetWindowLongA
(
hwnd
,
GWL_STYLE
);
ok
(
!
(
style
&
WS_DISABLED
),
"window should not be disabled
\n
"
);
...
...
@@ -7264,7 +7264,7 @@ static void test_ShowWindow(void)
ok
(
EqualRect
(
&
rcResized
,
&
rc
),
"expected %s, got %s
\n
"
,
wine_dbgstr_rect
(
&
rcResized
),
wine_dbgstr_rect
(
&
rc
));
ShowWindow
(
hwnd
,
SW_RESTORE
);
ret
=
ShowWindow
(
hwnd
,
SW_RESTORE
);
ok
(
ret
,
"not expected ret: %lu
\n
"
,
ret
);
style
=
GetWindowLongA
(
hwnd
,
GWL_STYLE
);
ok
(
!
(
style
&
WS_DISABLED
),
"window should not be disabled
\n
"
);
...
...
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