comctl32: Do not free LPSTR_TEXTCALLBACK tooltip texts.
This commit is contained in:
parent
213cee62b5
commit
8b55e4a662
|
@ -2025,7 +2025,8 @@ TOOLTIPS_SetToolInfoA (HWND hwnd, WPARAM wParam, LPARAM lParam)
|
||||||
else {
|
else {
|
||||||
if ( (toolPtr->lpszText) &&
|
if ( (toolPtr->lpszText) &&
|
||||||
!IS_INTRESOURCE(toolPtr->lpszText) ) {
|
!IS_INTRESOURCE(toolPtr->lpszText) ) {
|
||||||
Free (toolPtr->lpszText);
|
if( toolPtr->lpszText != LPSTR_TEXTCALLBACKW)
|
||||||
|
Free (toolPtr->lpszText);
|
||||||
toolPtr->lpszText = NULL;
|
toolPtr->lpszText = NULL;
|
||||||
}
|
}
|
||||||
if (lpToolInfo->lpszText) {
|
if (lpToolInfo->lpszText) {
|
||||||
|
@ -2082,7 +2083,8 @@ TOOLTIPS_SetToolInfoW (HWND hwnd, WPARAM wParam, LPARAM lParam)
|
||||||
else {
|
else {
|
||||||
if ( (toolPtr->lpszText) &&
|
if ( (toolPtr->lpszText) &&
|
||||||
!IS_INTRESOURCE(toolPtr->lpszText) ) {
|
!IS_INTRESOURCE(toolPtr->lpszText) ) {
|
||||||
Free (toolPtr->lpszText);
|
if( toolPtr->lpszText != LPSTR_TEXTCALLBACKW)
|
||||||
|
Free (toolPtr->lpszText);
|
||||||
toolPtr->lpszText = NULL;
|
toolPtr->lpszText = NULL;
|
||||||
}
|
}
|
||||||
if (lpToolInfo->lpszText) {
|
if (lpToolInfo->lpszText) {
|
||||||
|
@ -2208,7 +2210,8 @@ TOOLTIPS_UpdateTipTextA (HWND hwnd, WPARAM wParam, LPARAM lParam)
|
||||||
else {
|
else {
|
||||||
if ( (toolPtr->lpszText) &&
|
if ( (toolPtr->lpszText) &&
|
||||||
!IS_INTRESOURCE(toolPtr->lpszText) ) {
|
!IS_INTRESOURCE(toolPtr->lpszText) ) {
|
||||||
Free (toolPtr->lpszText);
|
if( toolPtr->lpszText != LPSTR_TEXTCALLBACKW)
|
||||||
|
Free (toolPtr->lpszText);
|
||||||
toolPtr->lpszText = NULL;
|
toolPtr->lpszText = NULL;
|
||||||
}
|
}
|
||||||
if (lpToolInfo->lpszText) {
|
if (lpToolInfo->lpszText) {
|
||||||
|
@ -2265,7 +2268,8 @@ TOOLTIPS_UpdateTipTextW (HWND hwnd, WPARAM wParam, LPARAM lParam)
|
||||||
else {
|
else {
|
||||||
if ( (toolPtr->lpszText) &&
|
if ( (toolPtr->lpszText) &&
|
||||||
!IS_INTRESOURCE(toolPtr->lpszText) ) {
|
!IS_INTRESOURCE(toolPtr->lpszText) ) {
|
||||||
Free (toolPtr->lpszText);
|
if( toolPtr->lpszText != LPSTR_TEXTCALLBACKW)
|
||||||
|
Free (toolPtr->lpszText);
|
||||||
toolPtr->lpszText = NULL;
|
toolPtr->lpszText = NULL;
|
||||||
}
|
}
|
||||||
if (lpToolInfo->lpszText) {
|
if (lpToolInfo->lpszText) {
|
||||||
|
|
Loading…
Reference in New Issue