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
552db89b
Commit
552db89b
authored
Dec 06, 2009
by
Marcus Meissner
Committed by
Alexandre Julliard
Dec 07, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reg: Fixed 2 functionality bugs in REG DELETE (Coverity).
parent
13608c8b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
reg.c
programs/reg/reg.c
+4
-3
No files found.
programs/reg/reg.c
View file @
552db89b
...
...
@@ -255,7 +255,8 @@ static int reg_delete(WCHAR *key_name, WCHAR *value_name, BOOL value_empty,
/* FIXME: Prompt for delete */
}
if
(
!
value_name
)
/* Delete subtree only if no /v* option is given */
if
(
!
value_name
&&
!
value_empty
&&
!
value_all
)
{
if
(
RegDeleteTreeW
(
root
,
p
)
!=
ERROR_SUCCESS
)
{
...
...
@@ -293,10 +294,10 @@ static int reg_delete(WCHAR *key_name, WCHAR *value_name, BOOL value_empty,
while
(
1
)
{
count
=
maxValue
;
rc
=
RegEnumValueW
(
subkey
,
0
,
value_nam
e
,
&
count
,
NULL
,
NULL
,
NULL
,
NULL
);
rc
=
RegEnumValueW
(
subkey
,
0
,
szValu
e
,
&
count
,
NULL
,
NULL
,
NULL
,
NULL
);
if
(
rc
==
ERROR_SUCCESS
)
{
rc
=
RegDeleteValueW
(
subkey
,
value_nam
e
);
rc
=
RegDeleteValueW
(
subkey
,
szValu
e
);
if
(
rc
!=
ERROR_SUCCESS
)
break
;
}
...
...
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