[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:
Katayama Hirofumi MZ 2024-02-05 08:08:33 +09:00 committed by GitHub
parent 290221ef5b
commit c858429fb1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
}