gphoto2.ds: Remove ZeroMemory() calls and instead set the relevant fields (usually just iSubItem) to zero manually.
This commit is contained in:
parent
e2a1168892
commit
7edba14310
|
@ -55,9 +55,9 @@ static void PopulateListView(HWND List)
|
||||||
{
|
{
|
||||||
if (strstr(file->filename,".JPG") || strstr(file->filename,".jpg"))
|
if (strstr(file->filename,".JPG") || strstr(file->filename,".jpg"))
|
||||||
{
|
{
|
||||||
memset(&item,0,sizeof(item));
|
|
||||||
item.mask = LVIF_PARAM | LVIF_TEXT | LVIF_IMAGE ;
|
item.mask = LVIF_PARAM | LVIF_TEXT | LVIF_IMAGE ;
|
||||||
item.iItem = index;
|
item.iItem = index;
|
||||||
|
item.iSubItem = 0;
|
||||||
item.pszText = file->filename;
|
item.pszText = file->filename;
|
||||||
item.iImage = index;
|
item.iImage = index;
|
||||||
item.lParam= (LPARAM)file;
|
item.lParam= (LPARAM)file;
|
||||||
|
@ -172,11 +172,11 @@ static INT_PTR CALLBACK DialogProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP
|
||||||
LVITEMA item;
|
LVITEMA item;
|
||||||
struct gphoto2_file *file;
|
struct gphoto2_file *file;
|
||||||
|
|
||||||
memset(&item,0,sizeof(item));
|
|
||||||
|
|
||||||
item.mask = LVIF_PARAM;
|
item.mask = LVIF_PARAM;
|
||||||
item.iItem = i;
|
item.iItem = i;
|
||||||
|
|
||||||
|
item.iSubItem = 0;
|
||||||
SendMessageA(list,LVM_GETITEMA,0,(LPARAM)&item);
|
SendMessageA(list,LVM_GETITEMA,0,(LPARAM)&item);
|
||||||
|
|
||||||
file = (struct gphoto2_file*)item.lParam;
|
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;
|
LVITEMA item;
|
||||||
struct gphoto2_file *file;
|
struct gphoto2_file *file;
|
||||||
|
|
||||||
memset(&item,0,sizeof(item));
|
|
||||||
|
|
||||||
item.mask = LVIF_PARAM;
|
item.mask = LVIF_PARAM;
|
||||||
item.iItem = i;
|
item.iItem = i;
|
||||||
|
item.iSubItem = 0;
|
||||||
|
|
||||||
SendMessageA(list,LVM_GETITEMA,0,(LPARAM)&item);
|
SendMessageA(list,LVM_GETITEMA,0,(LPARAM)&item);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue