comctl32: Fix broken detection of non-empty string.

This commit is contained in:
Alexander Dorofeyev 2007-10-28 22:56:06 -07:00 committed by Alexandre Julliard
parent 77c376e0f8
commit 35ff6d6750

View file

@ -6332,7 +6332,7 @@ static LRESULT TOOLBAR_TTGetDispInfo (TOOLBAR_INFO *infoPtr, NMTTDISPINFOW *lpnm
return 0;
}
}
else if (len > 0)
else if (tbgit.pszText[0])
{
MultiByteToWideChar(CP_ACP, 0, tbgit.pszText, -1,
lpnmtdi->lpszText, sizeof(lpnmtdi->szText)/sizeof(lpnmtdi->szText[0]));