appwiz: Ignore apps without title in the list.

This commit is contained in:
André Hentschel 2009-10-26 13:16:54 +01:00 committed by Alexandre Julliard
parent da86e727bd
commit a5107da440
1 changed files with 4 additions and 4 deletions

View File

@ -340,13 +340,15 @@ end:
*/
static void AddApplicationsToList(HWND hWnd, HIMAGELIST hList)
{
APPINFO *iter = AppInfo;
APPINFO *iter;
LVITEMW lvItem;
HICON hIcon;
int index;
while (iter)
for (iter = AppInfo; iter; iter = iter->next)
{
if (!iter->title[0]) continue;
/* get the icon */
index = 0;
@ -371,8 +373,6 @@ static void AddApplicationsToList(HWND hWnd, HIMAGELIST hList)
/* now add the subitems (columns) */
ListView_SetItemTextW(hWnd, index, 1, iter->publisher);
ListView_SetItemTextW(hWnd, index, 2, iter->version);
iter = iter->next;
}
}