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
c5aacafe
Commit
c5aacafe
authored
Oct 24, 2014
by
Bruno Jesus
Committed by
Alexandre Julliard
Oct 24, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecfg: No need to cut a backslash if it does not exist.
parent
19254eb4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
appdefaults.c
programs/winecfg/appdefaults.c
+3
-5
No files found.
programs/winecfg/appdefaults.c
View file @
c5aacafe
...
...
@@ -377,19 +377,17 @@ static void on_remove_app_click(HWND dialog)
{
HWND
listview
=
GetDlgItem
(
dialog
,
IDC_APP_LISTVIEW
);
int
selection
=
get_listview_selection
(
listview
);
char
*
section
=
keypath
(
""
);
/* AppDefaults\\whatever.exe\\ */
LVITEMW
item
;
item
.
iItem
=
selection
;
item
.
iSubItem
=
0
;
item
.
mask
=
LVIF_PARAM
;
WINE_TRACE
(
"selection=%d
, section=%s
\n
"
,
selection
,
s
ection
);
WINE_TRACE
(
"selection=%d
\n
"
,
sel
ection
);
assert
(
selection
!=
0
);
/* user cannot click this button when "default settings" is selected */
section
[
strlen
(
section
)]
=
'\0'
;
/* remove last backslash */
set_reg_key
(
config_key
,
section
,
NULL
,
NULL
);
/* delete the section */
set_reg_key
(
config_key
,
keypath
(
""
),
NULL
,
NULL
);
/* delete the section */
SendMessageW
(
listview
,
LVM_GETITEMW
,
0
,
(
LPARAM
)
&
item
);
HeapFree
(
GetProcessHeap
(),
0
,
(
void
*
)
item
.
lParam
);
SendMessageW
(
listview
,
LVM_DELETEITEM
,
selection
,
0
);
...
...
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