From 7edba14310b65ec1bfe5a69900ce52ffde667a52 Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Thu, 5 Oct 2006 11:02:27 +0200 Subject: [PATCH] gphoto2.ds: Remove ZeroMemory() calls and instead set the relevant fields (usually just iSubItem) to zero manually. --- dlls/gphoto2.ds/ui.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/gphoto2.ds/ui.c b/dlls/gphoto2.ds/ui.c index d6a488f5c8b..e709984fac7 100644 --- a/dlls/gphoto2.ds/ui.c +++ b/dlls/gphoto2.ds/ui.c @@ -55,9 +55,9 @@ static void PopulateListView(HWND List) { if (strstr(file->filename,".JPG") || strstr(file->filename,".jpg")) { - memset(&item,0,sizeof(item)); item.mask = LVIF_PARAM | LVIF_TEXT | LVIF_IMAGE ; item.iItem = index; + item.iSubItem = 0; item.pszText = file->filename; item.iImage = index; item.lParam= (LPARAM)file; @@ -172,11 +172,11 @@ static INT_PTR CALLBACK DialogProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP LVITEMA item; struct gphoto2_file *file; - memset(&item,0,sizeof(item)); item.mask = LVIF_PARAM; item.iItem = i; + item.iSubItem = 0; SendMessageA(list,LVM_GETITEMA,0,(LPARAM)&item); file = (struct gphoto2_file*)item.lParam; @@ -204,10 +204,10 @@ static INT_PTR CALLBACK DialogProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP LVITEMA item; struct gphoto2_file *file; - memset(&item,0,sizeof(item)); item.mask = LVIF_PARAM; item.iItem = i; + item.iSubItem = 0; SendMessageA(list,LVM_GETITEMA,0,(LPARAM)&item);