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
567d1e6e
Commit
567d1e6e
authored
Oct 05, 2006
by
Francois Gouget
Committed by
Alexandre Julliard
Oct 05, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecfg: Remove ZeroMemory() calls and instead set iSubItem = 0 manually.
Fix on_selection_change() and on_remove_app_click() so they do set iSubItem = 0.
parent
5c0a8a14
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
appdefaults.c
programs/winecfg/appdefaults.c
+5
-5
No files found.
programs/winecfg/appdefaults.c
View file @
567d1e6e
...
...
@@ -127,13 +127,12 @@ static void add_listview_item(HWND listview, const WCHAR *text, void *associatio
{
LVITEMW
item
;
ZeroMemory
(
&
item
,
sizeof
(
LVITEM
));
item
.
mask
=
LVIF_TEXT
|
LVIF_PARAM
;
item
.
pszText
=
(
WCHAR
*
)
text
;
item
.
cchTextMax
=
lstrlenW
(
text
);
item
.
lParam
=
(
LPARAM
)
association
;
item
.
iItem
=
ListView_GetItemCount
(
listview
);
item
.
iSubItem
=
0
;
SendMessage
(
listview
,
LVM_INSERTITEMW
,
0
,
(
LPARAM
)
&
item
);
}
...
...
@@ -179,10 +178,9 @@ static void init_appsheet(HWND dialog)
{
LVITEM
item
;
ZeroMemory
(
&
item
,
sizeof
(
item
));
item
.
mask
=
LVIF_STATE
;
item
.
iItem
=
0
;
item
.
iSubItem
=
0
;
item
.
mask
=
LVIF_STATE
;
item
.
state
=
LVIS_SELECTED
|
LVIS_FOCUSED
;
item
.
stateMask
=
LVIS_SELECTED
|
LVIS_FOCUSED
;
...
...
@@ -215,6 +213,7 @@ static void on_selection_change(HWND dialog, HWND listview)
WINE_TRACE
(
"()
\n
"
);
item
.
iItem
=
get_listview_selection
(
listview
);
item
.
iSubItem
=
0
;
item
.
mask
=
LVIF_PARAM
;
WINE_TRACE
(
"item.iItem=%d
\n
"
,
item
.
iItem
);
...
...
@@ -314,6 +313,7 @@ static void on_remove_app_click(HWND dialog)
LVITEMW
item
;
item
.
iItem
=
selection
;
item
.
iSubItem
=
0
;
item
.
mask
=
LVIF_PARAM
;
WINE_TRACE
(
"selection=%d, section=%s
\n
"
,
selection
,
section
);
...
...
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