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
93b5bcc6
Commit
93b5bcc6
authored
Mar 01, 2011
by
Peter Urbanec
Committed by
Alexandre Julliard
Mar 01, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Add a check for setting number of parts in the statusbar to zero.
parent
a22096c9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
status.c
dlls/comctl32/status.c
+2
-0
status.c
dlls/comctl32/tests/status.c
+6
-0
No files found.
dlls/comctl32/status.c
View file @
93b5bcc6
...
@@ -665,6 +665,8 @@ STATUSBAR_SetParts (STATUS_INFO *infoPtr, INT count, LPINT parts)
...
@@ -665,6 +665,8 @@ STATUSBAR_SetParts (STATUS_INFO *infoPtr, INT count, LPINT parts)
TRACE
(
"(%d,%p)
\n
"
,
count
,
parts
);
TRACE
(
"(%d,%p)
\n
"
,
count
,
parts
);
if
(
!
count
)
return
FALSE
;
oldNumParts
=
infoPtr
->
numParts
;
oldNumParts
=
infoPtr
->
numParts
;
infoPtr
->
numParts
=
count
;
infoPtr
->
numParts
=
count
;
if
(
oldNumParts
>
infoPtr
->
numParts
)
{
if
(
oldNumParts
>
infoPtr
->
numParts
)
{
...
...
dlls/comctl32/tests/status.c
View file @
93b5bcc6
...
@@ -382,6 +382,12 @@ static void test_status_control(void)
...
@@ -382,6 +382,12 @@ static void test_status_control(void)
/* Reset number of parts */
/* Reset number of parts */
r
=
SendMessage
(
hWndStatus
,
SB_SETPARTS
,
2
,
(
LPARAM
)
nParts
);
r
=
SendMessage
(
hWndStatus
,
SB_SETPARTS
,
2
,
(
LPARAM
)
nParts
);
expect
(
TRUE
,
r
);
expect
(
TRUE
,
r
);
r
=
SendMessage
(
hWndStatus
,
SB_GETPARTS
,
0
,
0
);
ok
(
r
==
2
,
"Expected 2, got %d
\n
"
,
r
);
r
=
SendMessage
(
hWndStatus
,
SB_SETPARTS
,
0
,
0
);
expect
(
FALSE
,
r
);
r
=
SendMessage
(
hWndStatus
,
SB_GETPARTS
,
0
,
0
);
ok
(
r
==
2
,
"Expected 2, got %d
\n
"
,
r
);
/* Set the minimum height and get rectangle information again */
/* Set the minimum height and get rectangle information again */
SendMessage
(
hWndStatus
,
SB_SETMINHEIGHT
,
50
,
0
);
SendMessage
(
hWndStatus
,
SB_SETMINHEIGHT
,
50
,
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