Francois Gouget : gphoto2.ds: Remove ZeroMemory() calls and instead set the relevant fields (usually just iSubItem) to zero manually.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Oct 5 13:06:09 CDT 2006


Module: wine
Branch: master
Commit: 7edba14310b65ec1bfe5a69900ce52ffde667a52
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7edba14310b65ec1bfe5a69900ce52ffde667a52

Author: Francois Gouget <fgouget at free.fr>
Date:   Thu Oct  5 11:02:27 2006 +0200

gphoto2.ds: Remove ZeroMemory() calls and instead set the relevant fields (usually just iSubItem) to zero manually.

---

 dlls/gphoto2.ds/ui.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/gphoto2.ds/ui.c b/dlls/gphoto2.ds/ui.c
index d6a488f..e709984 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 
 								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 
 							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);
 




More information about the wine-cvs mailing list