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
58447bcd
Commit
58447bcd
authored
Apr 30, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid autodetecting the prefix when loading the config file since the
first key may be named 'wine'.
parent
6ebf8b49
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
registry.c
server/registry.c
+4
-4
No files found.
server/registry.c
View file @
58447bcd
...
...
@@ -1391,14 +1391,14 @@ static int get_prefix_len( struct key *key, const char *name, struct file_load_i
}
/* load all the keys from the input file */
static
void
load_keys
(
struct
key
*
key
,
FILE
*
f
)
/* prefix_len is the number of key name prefixes to skip, or -1 for autodetection */
static
void
load_keys
(
struct
key
*
key
,
FILE
*
f
,
int
prefix_len
)
{
struct
key
*
subkey
=
NULL
;
struct
file_load_info
info
;
char
*
p
;
int
default_modif
=
time
(
NULL
);
int
flags
=
(
key
->
flags
&
KEY_VOLATILE
)
?
KEY_VOLATILE
:
KEY_DIRTY
;
int
prefix_len
=
-
1
;
/* number of key name prefixes to skip */
info
.
file
=
f
;
info
.
len
=
4
;
...
...
@@ -1465,7 +1465,7 @@ static void load_registry( struct key *key, obj_handle_t handle )
FILE
*
f
=
fdopen
(
fd
,
"r"
);
if
(
f
)
{
load_keys
(
key
,
f
);
load_keys
(
key
,
f
,
-
1
);
fclose
(
f
);
}
else
file_set_error
();
...
...
@@ -1505,7 +1505,7 @@ void init_registry(void)
fatal_error
(
"could not create config key
\n
"
);
key
->
flags
|=
KEY_VOLATILE
;
load_keys
(
key
,
f
);
load_keys
(
key
,
f
,
0
);
fclose
(
f
);
if
(
get_error
()
==
STATUS_NOT_REGISTRY_FILE
)
fatal_error
(
"%s is not a valid registry file
\n
"
,
filename
);
...
...
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