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
72828e00
Commit
72828e00
authored
Jan 13, 2001
by
François Gouget
Committed by
Alexandre Julliard
Jan 13, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
In STATUSBAR_GetTipText{a,W, always put a terminating '\0' in the
buffer. Pass a buffer of sufficient size to TTM_GETTEXTA.
parent
ba3c18df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
19 deletions
+28
-19
status.c
dlls/comctl32/status.c
+28
-19
No files found.
dlls/comctl32/status.c
View file @
72828e00
...
...
@@ -457,18 +457,22 @@ static LRESULT
STATUSBAR_GetTipTextA
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
{
STATUSWINDOWINFO
*
infoPtr
=
STATUSBAR_GetInfoPtr
(
hwnd
);
if
(
infoPtr
->
hwndToolTip
)
{
TTTOOLINFOA
ti
;
ti
.
cbSize
=
sizeof
(
TTTOOLINFOA
);
ti
.
hwnd
=
hwnd
;
ti
.
uId
=
LOWORD
(
wParam
);
SendMessageA
(
infoPtr
->
hwndToolTip
,
TTM_GETTEXTA
,
0
,
(
LPARAM
)
&
ti
);
if
(
ti
.
lpszText
)
lstrcpynA
((
LPSTR
)
lParam
,
ti
.
lpszText
,
HIWORD
(
wParam
));
LPSTR
tip
=
(
LPSTR
)
lParam
;
if
(
tip
)
{
CHAR
buf
[
INFOTIPSIZE
];
buf
[
0
]
=
'\0'
;
if
(
infoPtr
->
hwndToolTip
)
{
TTTOOLINFOA
ti
;
ti
.
cbSize
=
sizeof
(
TTTOOLINFOA
);
ti
.
hwnd
=
hwnd
;
ti
.
uId
=
LOWORD
(
wParam
);
ti
.
lpszText
=
buf
;
SendMessageA
(
infoPtr
->
hwndToolTip
,
TTM_GETTEXTA
,
0
,
(
LPARAM
)
&
ti
);
}
lstrcpynA
(
tip
,
buf
,
HIWORD
(
wParam
));
}
return
0
;
}
...
...
@@ -477,16 +481,21 @@ static LRESULT
STATUSBAR_GetTipTextW
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
{
STATUSWINDOWINFO
*
infoPtr
=
STATUSBAR_GetInfoPtr
(
hwnd
);
LPWSTR
tip
=
(
LPWSTR
)
lParam
;
if
(
infoPtr
->
hwndToolTip
)
{
TTTOOLINFOW
ti
;
ti
.
cbSize
=
sizeof
(
TTTOOLINFOW
);
ti
.
hwnd
=
hwnd
;
ti
.
uId
=
LOWORD
(
wParam
);
SendMessageW
(
infoPtr
->
hwndToolTip
,
TTM_GETTEXTW
,
0
,
(
LPARAM
)
&
ti
);
if
(
tip
)
{
WCHAR
buf
[
INFOTIPSIZE
];
buf
[
0
]
=
0
;
if
(
ti
.
lpszText
)
lstrcpynW
((
LPWSTR
)
lParam
,
ti
.
lpszText
,
HIWORD
(
wParam
));
if
(
infoPtr
->
hwndToolTip
)
{
TTTOOLINFOW
ti
;
ti
.
cbSize
=
sizeof
(
TTTOOLINFOW
);
ti
.
hwnd
=
hwnd
;
ti
.
uId
=
LOWORD
(
wParam
);
ti
.
lpszText
=
buf
;
SendMessageW
(
infoPtr
->
hwndToolTip
,
TTM_GETTEXTW
,
0
,
(
LPARAM
)
&
ti
);
}
lstrcpynW
(
tip
,
buf
,
HIWORD
(
wParam
));
}
return
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