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
68b48acb
Commit
68b48acb
authored
Nov 12, 2021
by
Thomas Faber
Committed by
Alexandre Julliard
Nov 12, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Test SB_GETPARTS with large wParam.
Signed-off-by:
Thomas Faber
<
thomas.faber@reactos.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
bb24e756
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
status.c
dlls/comctl32/tests/status.c
+10
-2
No files found.
dlls/comctl32/tests/status.c
View file @
68b48acb
...
...
@@ -253,7 +253,7 @@ static void test_status_control(void)
HWND
hWndStatus
;
int
r
;
int
nParts
[]
=
{
50
,
150
,
-
1
};
int
checkParts
[]
=
{
0
,
0
,
0
};
int
checkParts
[]
=
{
0
,
0
,
0
,
0
,
0
};
int
borders
[]
=
{
0
,
0
,
0
};
RECT
rc
;
CHAR
charArray
[
20
];
...
...
@@ -304,12 +304,20 @@ static void test_status_control(void)
expect
(
5
,
LOWORD
(
r
));
expect
(
SBT_NOBORDERS
,
HIWORD
(
r
));
/* Get parts
and borders
*/
/* Get parts */
r
=
SendMessageA
(
hWndStatus
,
SB_GETPARTS
,
3
,
(
LPARAM
)
checkParts
);
ok
(
r
==
3
,
"Expected 3, got %d
\n
"
,
r
);
expect
(
50
,
checkParts
[
0
]);
expect
(
150
,
checkParts
[
1
]);
expect
(
-
1
,
checkParts
[
2
]);
r
=
SendMessageA
(
hWndStatus
,
SB_GETPARTS
,
5
,
(
LPARAM
)
checkParts
);
ok
(
r
==
3
,
"Expected 3, got %d
\n
"
,
r
);
expect
(
50
,
checkParts
[
0
]);
expect
(
150
,
checkParts
[
1
]);
expect
(
-
1
,
checkParts
[
2
]);
expect
(
0
,
checkParts
[
3
]);
expect
(
0
,
checkParts
[
4
]);
/* Get borders */
r
=
SendMessageA
(
hWndStatus
,
SB_GETBORDERS
,
0
,
(
LPARAM
)
borders
);
ok
(
r
==
TRUE
,
"Expected TRUE, got %d
\n
"
,
r
);
expect
(
0
,
borders
[
0
]);
...
...
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