André Hentschel : appwiz: Ignore apps without title in the list.
Alexandre Julliard
julliard at winehq.org
Mon Oct 26 10:08:39 CDT 2009
Module: wine
Branch: master
Commit: a5107da440d9933f69bc298ce86b1f0a51464129
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a5107da440d9933f69bc298ce86b1f0a51464129
Author: André Hentschel <nerv at dawncrow.de>
Date: Mon Oct 26 13:16:54 2009 +0100
appwiz: Ignore apps without title in the list.
---
dlls/appwiz.cpl/appwiz.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/appwiz.cpl/appwiz.c b/dlls/appwiz.cpl/appwiz.c
index 0d9e555..bafd319 100644
--- a/dlls/appwiz.cpl/appwiz.c
+++ b/dlls/appwiz.cpl/appwiz.c
@@ -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;
}
}
More information about the wine-cvs
mailing list