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
f91eb0a9
Commit
f91eb0a9
authored
Dec 17, 2021
by
Esme Povirk
Committed by
Alexandre Julliard
Oct 24, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Test Get/SetWindowPlacement with invalid length.
parent
c698ba86
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
win.c
dlls/user32/tests/win.c
+12
-1
No files found.
dlls/user32/tests/win.c
View file @
f91eb0a9
...
@@ -12498,6 +12498,17 @@ static void test_window_placement(void)
...
@@ -12498,6 +12498,17 @@ static void test_window_placement(void)
GetWindowRect
(
hwnd
,
&
rect
);
GetWindowRect
(
hwnd
,
&
rect
);
ok
(
EqualRect
(
&
rect
,
&
orig
),
"got window rect %s
\n
"
,
wine_dbgstr_rect
(
&
rect
));
ok
(
EqualRect
(
&
rect
,
&
orig
),
"got window rect %s
\n
"
,
wine_dbgstr_rect
(
&
rect
));
ret
=
SetWindowPlacement
(
hwnd
,
&
wp
);
ok
(
ret
,
"failed to set window placement, error %lu
\n
"
,
GetLastError
());
wp
.
length
=
0
;
SetLastError
(
0xdeadbeef
);
ret
=
SetWindowPlacement
(
hwnd
,
&
wp
);
todo_wine
{
ok
(
!
ret
,
"SetWindowPlacement should have failed
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"wrong error %lu
\n
"
,
GetLastError
());
}
DestroyWindow
(
hwnd
);
DestroyWindow
(
hwnd
);
}
}
...
@@ -12657,7 +12668,7 @@ static void test_arrange_iconic_windows(void)
...
@@ -12657,7 +12668,7 @@ static void test_arrange_iconic_windows(void)
static
void
other_process_proc
(
HWND
hwnd
)
static
void
other_process_proc
(
HWND
hwnd
)
{
{
HANDLE
window_ready_event
,
test_done_event
;
HANDLE
window_ready_event
,
test_done_event
;
WINDOWPLACEMENT
wp
;
WINDOWPLACEMENT
wp
=
{
0
}
;
DWORD
ret
;
DWORD
ret
;
window_ready_event
=
OpenEventA
(
EVENT_ALL_ACCESS
,
FALSE
,
"test_opw_window"
);
window_ready_event
=
OpenEventA
(
EVENT_ALL_ACCESS
,
FALSE
,
"test_opw_window"
);
...
...
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