mirror of
https://github.com/reactos/wine.git
synced 2024-12-03 09:20:56 +00:00
comctl32: Fix read of uninitialized data in LISTVIEW_GetItemExtT when LVIF_TEXT is not set (Valgrind).
This commit is contained in:
parent
46caa0d225
commit
f2df2f38e6
@ -6743,7 +6743,7 @@ static BOOL LISTVIEW_GetItemExtT(const LISTVIEW_INFO *infoPtr, LPLVITEMW lpLVIte
|
|||||||
|
|
||||||
pszText = lpLVItem->pszText;
|
pszText = lpLVItem->pszText;
|
||||||
bResult = LISTVIEW_GetItemT(infoPtr, lpLVItem, isW);
|
bResult = LISTVIEW_GetItemT(infoPtr, lpLVItem, isW);
|
||||||
if (bResult && lpLVItem->pszText != pszText)
|
if (bResult && (lpLVItem->mask & LVIF_TEXT) && lpLVItem->pszText != pszText)
|
||||||
{
|
{
|
||||||
if (lpLVItem->pszText != LPSTR_TEXTCALLBACKW)
|
if (lpLVItem->pszText != LPSTR_TEXTCALLBACKW)
|
||||||
textcpynT(pszText, isW, lpLVItem->pszText, isW, lpLVItem->cchTextMax);
|
textcpynT(pszText, isW, lpLVItem->pszText, isW, lpLVItem->cchTextMax);
|
||||||
|
Loading…
Reference in New Issue
Block a user