Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
054fd8cb
Commit
054fd8cb
authored
Mar 01, 2007
by
Lei Zhang
Committed by
Alexandre Julliard
Mar 02, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Allow entering - for a key in a .reg file to delete that key.
parent
1a54a89b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
regproc.c
programs/regedit/regproc.c
+13
-0
No files found.
programs/regedit/regproc.c
View file @
054fd8cb
...
...
@@ -283,6 +283,7 @@ LPSTR getArg( LPSTR arg)
if
(
arg
[
0
]
==
'\"'
)
arg
++
;
tmp
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
arg
)
+
1
);
CHECK_ENOUGH_MEMORY
(
tmp
);
strcpy
(
tmp
,
arg
);
return
tmp
;
...
...
@@ -544,6 +545,18 @@ void doSetValue(LPSTR stdInput)
if
(
bTheKeyIsOpen
!=
FALSE
)
closeKey
();
/* Close the previous key before */
/* delete the key if we encounter '-' at the start of reg key */
if
(
stdInput
[
1
]
==
'-'
)
{
int
last_chr
=
strlen
(
stdInput
)
-
1
;
/* skip leading "[-" and get rid of trailing "]" */
if
(
stdInput
[
last_chr
]
==
']'
)
stdInput
[
last_chr
]
=
'\0'
;
delete_registry_key
(
stdInput
+
2
);
return
;
}
if
(
openKey
(
stdInput
)
!=
ERROR_SUCCESS
)
fprintf
(
stderr
,
"%s: setValue failed to open key %s
\n
"
,
getAppName
(),
stdInput
);
...
...
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