Commit 7edba143 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

gphoto2.ds: Remove ZeroMemory() calls and instead set the relevant fields…

gphoto2.ds: Remove ZeroMemory() calls and instead set the relevant fields (usually just iSubItem) to zero manually.
parent e2a11688
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment