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
5e7e3cbd
Commit
5e7e3cbd
authored
Apr 30, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tooltip: Compare to special callback pointer value directly.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
07e41e4c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
12 deletions
+3
-12
tooltips.c
dlls/comctl32/tooltips.c
+3
-12
No files found.
dlls/comctl32/tooltips.c
View file @
5e7e3cbd
...
...
@@ -177,15 +177,6 @@ typedef struct
static
LRESULT
CALLBACK
TOOLTIPS_SubclassProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
,
UINT_PTR
uId
,
DWORD_PTR
dwRef
);
static
inline
BOOL
TOOLTIPS_IsCallbackString
(
LPCWSTR
str
,
BOOL
isW
)
{
if
(
isW
)
return
str
==
LPSTR_TEXTCALLBACKW
;
else
return
(
LPCSTR
)
str
==
LPSTR_TEXTCALLBACKA
;
}
static
inline
UINT_PTR
TOOLTIPS_GetTitleIconIndex
(
HICON
hIcon
)
{
...
...
@@ -1091,7 +1082,7 @@ TOOLTIPS_AddToolT (TOOLTIPS_INFO *infoPtr, const TTTOOLINFOW *ti, BOOL isW)
toolPtr
->
lpszText
=
ti
->
lpszText
;
}
else
if
(
ti
->
lpszText
)
{
if
(
TOOLTIPS_IsCallbackString
(
ti
->
lpszText
,
isW
)
)
{
if
(
ti
->
lpszText
==
LPSTR_TEXTCALLBACKW
)
{
TRACE
(
"add CALLBACK
\n
"
);
toolPtr
->
lpszText
=
LPSTR_TEXTCALLBACKW
;
}
...
...
@@ -1674,7 +1665,7 @@ TOOLTIPS_SetToolInfoT (TOOLTIPS_INFO *infoPtr, const TTTOOLINFOW *ti, BOOL isW)
toolPtr
->
lpszText
=
ti
->
lpszText
;
}
else
{
if
(
TOOLTIPS_IsCallbackString
(
ti
->
lpszText
,
isW
)
)
if
(
ti
->
lpszText
==
LPSTR_TEXTCALLBACKW
)
toolPtr
->
lpszText
=
LPSTR_TEXTCALLBACKW
;
else
{
if
(
(
toolPtr
->
lpszText
)
&&
...
...
@@ -1800,7 +1791,7 @@ TOOLTIPS_UpdateTipTextT (TOOLTIPS_INFO *infoPtr, const TTTOOLINFOW *ti, BOOL isW
toolPtr
->
lpszText
=
ti
->
lpszText
;
}
else
if
(
ti
->
lpszText
)
{
if
(
TOOLTIPS_IsCallbackString
(
ti
->
lpszText
,
isW
)
)
if
(
ti
->
lpszText
==
LPSTR_TEXTCALLBACKW
)
toolPtr
->
lpszText
=
LPSTR_TEXTCALLBACKW
;
else
{
if
(
(
toolPtr
->
lpszText
)
&&
...
...
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