mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[COMCTL32] ToolTips: Don't set text on default LPSTR_TEXTCALLBACK (#6412)
Based on KRosUser's tooltip_fix.patch. JIRA issue: CORE-19309 Don't set text on default processing of LPSTR_TEXTCALLBACK.
This commit is contained in:
parent
290221ef5b
commit
c858429fb1
1 changed files with 4 additions and 0 deletions
|
@ -417,6 +417,7 @@ static void TOOLTIPS_GetDispInfoA(const TOOLTIPS_INFO *infoPtr, TTTOOL_INFO *too
|
|||
buffer[0] = '\0';
|
||||
}
|
||||
|
||||
#ifndef __REACTOS_
|
||||
/* no text available - try calling parent instead as per native */
|
||||
/* FIXME: Unsure if SETITEM should save the value or not */
|
||||
if (buffer[0] == 0x00) {
|
||||
|
@ -431,6 +432,7 @@ static void TOOLTIPS_GetDispInfoA(const TOOLTIPS_INFO *infoPtr, TTTOOL_INFO *too
|
|||
Str_GetPtrAtoW(ttnmdi.lpszText, buffer, INFOTIPSIZE);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
static void TOOLTIPS_GetDispInfoW(const TOOLTIPS_INFO *infoPtr, TTTOOL_INFO *toolPtr, WCHAR *buffer)
|
||||
|
@ -473,6 +475,7 @@ static void TOOLTIPS_GetDispInfoW(const TOOLTIPS_INFO *infoPtr, TTTOOL_INFO *too
|
|||
buffer[0] = '\0';
|
||||
}
|
||||
|
||||
#ifndef __REACTOS__
|
||||
/* no text available - try calling parent instead as per native */
|
||||
/* FIXME: Unsure if SETITEM should save the value or not */
|
||||
if (buffer[0] == 0x00) {
|
||||
|
@ -487,6 +490,7 @@ static void TOOLTIPS_GetDispInfoW(const TOOLTIPS_INFO *infoPtr, TTTOOL_INFO *too
|
|||
Str_GetPtrW(ttnmdi.lpszText, buffer, INFOTIPSIZE);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue