Nikolay Sivov : regedit: Remove explicit iIndent field initialization.
Alexandre Julliard
julliard at winehq.org
Wed Jun 28 15:10:26 CDT 2017
Module: wine
Branch: master
Commit: f4e98d813fa483a7156a8c68237523b878ea8463
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f4e98d813fa483a7156a8c68237523b878ea8463
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Wed Jun 28 15:49:55 2017 +0300
regedit: Remove explicit iIndent field initialization.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
programs/regedit/listview.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/programs/regedit/listview.c b/programs/regedit/listview.c
index 4be7c94..c59d435 100644
--- a/programs/regedit/listview.c
+++ b/programs/regedit/listview.c
@@ -153,8 +153,8 @@ void format_value_data(HWND hwndLV, int index, DWORD type, void *data, DWORD siz
int AddEntryToList(HWND hwndLV, WCHAR *Name, DWORD dwValType, void *ValBuf, DWORD dwCount, int pos)
{
+ LVITEMW item = { 0 };
LINE_INFO* linfo;
- LVITEMW item;
int index;
linfo = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(LINE_INFO) + dwCount);
@@ -173,8 +173,6 @@ int AddEntryToList(HWND hwndLV, WCHAR *Name, DWORD dwValType, void *ValBuf, DWOR
item.mask = LVIF_TEXT | LVIF_PARAM | LVIF_STATE | LVIF_IMAGE;
item.iItem = (pos == -1) ? SendMessageW(hwndLV, LVM_GETITEMCOUNT, 0, 0) : pos;
- item.iSubItem = 0;
- item.state = 0;
item.stateMask = LVIS_FOCUSED | LVIS_SELECTED;
item.pszText = Name ? Name : LPSTR_TEXTCALLBACKW;
item.cchTextMax = Name ? lstrlenW(item.pszText) : 0;
@@ -192,10 +190,6 @@ int AddEntryToList(HWND hwndLV, WCHAR *Name, DWORD dwValType, void *ValBuf, DWOR
}
item.lParam = (LPARAM)linfo;
-#if (_WIN32_IE >= 0x0300)
- item.iIndent = 0;
-#endif
-
if ((index = ListView_InsertItemW(hwndLV, &item)) != -1)
format_value_data(hwndLV, index, dwValType, ValBuf, dwCount);
return index;
More information about the wine-cvs
mailing list