Commit 0f9d56fd authored by Niclas Karlsson MATE's avatar Niclas Karlsson MATE Committed by Alexandre Julliard

LPSTR_TEXTCALLBACK wouldn't work if the application supplied the item

text in its own buffer.
parent e101f6db
......@@ -4796,7 +4796,11 @@ static LRESULT LISTVIEW_GetItemA(HWND hwnd, LPLVITEMA lpLVItem, BOOL internal)
{
Str_SetPtrA(ppszText, dispInfo.item.pszText);
}
/* Here lpLVItem->pszText==dispInfo.item.pszText so a copy is unnecessary */
/* If lpLVItem->pszText==dispInfo.item.pszText a copy is unnecessary, but */
/* some apps give a new pointer in ListView_Notify so we can't be sure. */
if (lpLVItem->pszText!=dispInfo.item.pszText) {
lstrcpynA(lpLVItem->pszText, dispInfo.item.pszText, lpLVItem->cchTextMax);
}
}
else if (lpLVItem->mask & LVIF_TEXT)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment