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
6ad44d7a
Commit
6ad44d7a
authored
Jul 05, 2016
by
Hugh McMaster
Committed by
Alexandre Julliard
Jul 05, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Process the next file, if any, on error.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
221bb0f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
regedit.c
programs/regedit/regedit.c
+5
-4
No files found.
programs/regedit/regedit.c
View file @
6ad44d7a
...
...
@@ -88,7 +88,7 @@ typedef enum {
ACTION_ADD
,
ACTION_EXPORT
,
ACTION_DELETE
}
REGEDIT_ACTION
;
static
BOOL
PerformRegAction
(
REGEDIT_ACTION
action
,
WCHAR
**
argv
,
int
*
i
)
static
void
PerformRegAction
(
REGEDIT_ACTION
action
,
WCHAR
**
argv
,
int
*
i
)
{
switch
(
action
)
{
case
ACTION_ADD
:
{
...
...
@@ -113,7 +113,8 @@ static BOOL PerformRegAction(REGEDIT_ACTION action, WCHAR **argv, int *i)
if
(
size
==
0
)
{
output_message
(
STRING_FILE_NOT_FOUND
,
filename
);
exit
(
1
);
HeapFree
(
GetProcessHeap
(),
0
,
realname
);
return
;
}
reg_file
=
_wfopen
(
realname
,
rb_mode
);
if
(
reg_file
==
NULL
)
...
...
@@ -121,7 +122,8 @@ static BOOL PerformRegAction(REGEDIT_ACTION action, WCHAR **argv, int *i)
WCHAR
regedit
[]
=
{
'r'
,
'e'
,
'g'
,
'e'
,
'd'
,
'i'
,
't'
,
0
};
_wperror
(
regedit
);
output_message
(
STRING_CANNOT_OPEN_FILE
,
filename
);
exit
(
1
);
HeapFree
(
GetProcessHeap
(),
0
,
realname
);
return
;
}
import_registry_file
(
reg_file
);
if
(
realname
)
...
...
@@ -150,7 +152,6 @@ static BOOL PerformRegAction(REGEDIT_ACTION action, WCHAR **argv, int *i)
exit
(
1
);
break
;
}
return
TRUE
;
}
BOOL
ProcessCmdLine
(
WCHAR
*
cmdline
)
...
...
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