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
bbee7ec7
Commit
bbee7ec7
authored
May 29, 2002
by
Sander van Leeuwen
Committed by
Alexandre Julliard
May 29, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Check for valid part nr in STATUSBAR_GetTextLength.
- TRACE fix in STATUSBAR_SetTextT; SBT_OWNERDRAW pointer isn't always a string pointer.
parent
e656fc1c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
status.c
dlls/comctl32/status.c
+8
-1
No files found.
dlls/comctl32/status.c
View file @
bbee7ec7
...
...
@@ -426,6 +426,10 @@ STATUSBAR_GetTextLength (STATUSWINDOWINFO *infoPtr, INT nPart)
DWORD
result
;
TRACE
(
"part %d
\n
"
,
nPart
);
/* MSDN says: "simple parts use index of 0", so this check is ok. */
if
(
nPart
<
0
||
nPart
>=
infoPtr
->
numParts
)
return
0
;
if
(
infoPtr
->
simple
)
part
=
&
infoPtr
->
part0
;
else
...
...
@@ -627,7 +631,10 @@ STATUSBAR_SetTextT (STATUSWINDOWINFO *infoPtr, INT nPart, WORD style,
STATUSWINDOWPART
*
part
=
NULL
;
BOOL
changed
=
FALSE
;
TRACE
(
"part %d, text %s
\n
"
,
nPart
,
debugstr_t
(
text
,
isW
));
if
(
style
&
SBT_OWNERDRAW
)
{
TRACE
(
"part %d, text %x
\n
"
,
nPart
,
text
);
}
else
TRACE
(
"part %d, text %s
\n
"
,
nPart
,
debugstr_t
(
text
,
isW
));
/* MSDN says: "If the parameter is set to SB_SIMPLEID (255), the status
* window is assumed to be a simple 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