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
a3b7a072
Commit
a3b7a072
authored
Mar 17, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Mar 18, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecfg: Fix some gcc 4.1 warnings.
parent
32f6b71c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
appdefaults.c
programs/winecfg/appdefaults.c
+4
-4
No files found.
programs/winecfg/appdefaults.c
View file @
a3b7a072
...
...
@@ -130,7 +130,7 @@ static void add_listview_item(HWND listview, const char *text, void *association
item
.
lParam
=
(
LPARAM
)
association
;
item
.
iItem
=
ListView_GetItemCount
(
listview
);
ListView_InsertItem
(
listview
,
&
item
);
SendMessage
(
listview
,
LVM_INSERTITEM
,
0
,
(
LPARAM
)
&
item
);
}
/* Called when the application is initialized (cannot reinit!) */
...
...
@@ -179,7 +179,7 @@ static void init_appsheet(HWND dialog)
item
.
state
=
LVIS_SELECTED
|
LVIS_FOCUSED
;
item
.
stateMask
=
LVIS_SELECTED
|
LVIS_FOCUSED
;
ListView_SetItem
(
listview
,
&
item
);
SendMessage
(
listview
,
LVM_SETITEM
,
0
,
(
LPARAM
)
&
item
);
}
}
...
...
@@ -214,7 +214,7 @@ static void on_selection_change(HWND dialog, HWND listview)
if
(
item
.
iItem
==
-
1
)
return
;
ListView_GetItem
(
listview
,
&
item
);
SendMessage
(
listview
,
LVM_GETITEM
,
0
,
(
LPARAM
)
&
item
);
current_app
=
(
char
*
)
item
.
lParam
;
...
...
@@ -301,7 +301,7 @@ static void on_remove_app_click(HWND dialog)
section
[
strlen
(
section
)]
=
'\0'
;
/* remove last backslash */
set_reg_key
(
config_key
,
section
,
NULL
,
NULL
);
/* delete the section */
ListView_DeleteItem
(
listview
,
selection
);
SendMessage
(
listview
,
LVM_DELETEITEM
,
selection
,
0
);
ListView_SetItemState
(
listview
,
selection
-
1
,
LVIS_SELECTED
|
LVIS_FOCUSED
,
LVIS_SELECTED
|
LVIS_FOCUSED
);
SetFocus
(
listview
);
...
...
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