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
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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
9 deletions
+18
-9
status.c
dlls/comctl32/status.c
+18
-9
No files found.
dlls/comctl32/status.c
View file @
72828e00
...
@@ -457,18 +457,22 @@ static LRESULT
...
@@ -457,18 +457,22 @@ static LRESULT
STATUSBAR_GetTipTextA
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
STATUSBAR_GetTipTextA
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
{
{
STATUSWINDOWINFO
*
infoPtr
=
STATUSBAR_GetInfoPtr
(
hwnd
);
STATUSWINDOWINFO
*
infoPtr
=
STATUSBAR_GetInfoPtr
(
hwnd
);
LPSTR
tip
=
(
LPSTR
)
lParam
;
if
(
tip
)
{
CHAR
buf
[
INFOTIPSIZE
];
buf
[
0
]
=
'\0'
;
if
(
infoPtr
->
hwndToolTip
)
{
if
(
infoPtr
->
hwndToolTip
)
{
TTTOOLINFOA
ti
;
TTTOOLINFOA
ti
;
ti
.
cbSize
=
sizeof
(
TTTOOLINFOA
);
ti
.
cbSize
=
sizeof
(
TTTOOLINFOA
);
ti
.
hwnd
=
hwnd
;
ti
.
hwnd
=
hwnd
;
ti
.
uId
=
LOWORD
(
wParam
);
ti
.
uId
=
LOWORD
(
wParam
);
SendMessageA
(
infoPtr
->
hwndToolTip
,
TTM_GETTEXTA
,
0
,
(
LPARAM
)
&
ti
)
;
ti
.
lpszText
=
buf
;
SendMessageA
(
infoPtr
->
hwndToolTip
,
TTM_GETTEXTA
,
0
,
(
LPARAM
)
&
ti
);
if
(
ti
.
lpszText
)
}
lstrcpynA
((
LPSTR
)
lParam
,
ti
.
lpszText
,
HIWORD
(
wParam
));
lstrcpynA
(
tip
,
buf
,
HIWORD
(
wParam
));
}
}
return
0
;
return
0
;
}
}
...
@@ -477,16 +481,21 @@ static LRESULT
...
@@ -477,16 +481,21 @@ static LRESULT
STATUSBAR_GetTipTextW
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
STATUSBAR_GetTipTextW
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
{
{
STATUSWINDOWINFO
*
infoPtr
=
STATUSBAR_GetInfoPtr
(
hwnd
);
STATUSWINDOWINFO
*
infoPtr
=
STATUSBAR_GetInfoPtr
(
hwnd
);
LPWSTR
tip
=
(
LPWSTR
)
lParam
;
if
(
tip
)
{
WCHAR
buf
[
INFOTIPSIZE
];
buf
[
0
]
=
0
;
if
(
infoPtr
->
hwndToolTip
)
{
if
(
infoPtr
->
hwndToolTip
)
{
TTTOOLINFOW
ti
;
TTTOOLINFOW
ti
;
ti
.
cbSize
=
sizeof
(
TTTOOLINFOW
);
ti
.
cbSize
=
sizeof
(
TTTOOLINFOW
);
ti
.
hwnd
=
hwnd
;
ti
.
hwnd
=
hwnd
;
ti
.
uId
=
LOWORD
(
wParam
);
ti
.
uId
=
LOWORD
(
wParam
);
SendMessageW
(
infoPtr
->
hwndToolTip
,
TTM_GETTEXTW
,
0
,
(
LPARAM
)
&
ti
)
;
ti
.
lpszText
=
buf
;
SendMessageW
(
infoPtr
->
hwndToolTip
,
TTM_GETTEXTW
,
0
,
(
LPARAM
)
&
ti
);
if
(
ti
.
lpszText
)
}
lstrcpynW
((
LPWSTR
)
lParam
,
ti
.
lpszText
,
HIWORD
(
wParam
));
lstrcpynW
(
tip
,
buf
,
HIWORD
(
wParam
));
}
}
return
0
;
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