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
5b23efc3
Commit
5b23efc3
authored
May 14, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure to save the registry files even if we failed to load them.
parent
ee0868e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
registry.c
server/registry.c
+9
-7
No files found.
server/registry.c
View file @
5b23efc3
...
@@ -1416,13 +1416,15 @@ static void load_init_registry_from_file( const char *filename, struct key *key
...
@@ -1416,13 +1416,15 @@ static void load_init_registry_from_file( const char *filename, struct key *key
{
{
FILE
*
f
;
FILE
*
f
;
if
(
!
(
f
=
fopen
(
filename
,
"r"
)))
return
;
if
((
f
=
fopen
(
filename
,
"r"
)))
load_keys
(
key
,
f
,
0
);
{
fclose
(
f
);
load_keys
(
key
,
f
,
0
);
if
(
get_error
()
==
STATUS_NOT_REGISTRY_FILE
)
fclose
(
f
);
fatal_error
(
"%s is not a valid registry file
\n
"
,
filename
);
if
(
get_error
()
==
STATUS_NOT_REGISTRY_FILE
)
if
(
get_error
())
fatal_error
(
"%s is not a valid registry file
\n
"
,
filename
);
fatal_error
(
"loading %s failed with error %x
\n
"
,
filename
,
get_error
()
);
if
(
get_error
())
fatal_error
(
"loading %s failed with error %x
\n
"
,
filename
,
get_error
()
);
}
if
(
!
(
key
->
flags
&
KEY_VOLATILE
))
if
(
!
(
key
->
flags
&
KEY_VOLATILE
))
{
{
...
...
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