comctl32/listview: Initialize string pointers on notification conversion routine.

This commit is contained in:
Nikolay Sivov 2009-06-24 00:20:11 +04:00 committed by Alexandre Julliard
parent 0ac20c4bd3
commit 2551ea0568
1 changed files with 2 additions and 0 deletions

View File

@ -759,6 +759,7 @@ static LRESULT notify_forward_header(const LISTVIEW_INFO *infoPtr, const NMHEADE
/* convert item text */
if (lpnmh->pitem->mask & HDI_TEXT)
{
hditema.pszText = NULL;
Str_SetPtrWtoA(&hditema.pszText, lpnmh->pitem->pszText);
text = hditema.pszText;
}
@ -768,6 +769,7 @@ static LRESULT notify_forward_header(const LISTVIEW_INFO *infoPtr, const NMHEADE
{
hditema.pvFilter = &textfilter;
textfilter = *(HD_TEXTFILTERA*)(lpnmh->pitem->pvFilter);
textfilter.pszText = NULL;
Str_SetPtrWtoA(&textfilter.pszText, ((HD_TEXTFILTERW*)lpnmh->pitem->pvFilter)->pszText);
filter = textfilter.pszText;
}