Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
f4e98d81
Commit
f4e98d81
authored
Jun 28, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 28, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Remove explicit iIndent field initialization.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b84f2288
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
listview.c
programs/regedit/listview.c
+1
-7
No files found.
programs/regedit/listview.c
View file @
f4e98d81
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment