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
808619b7
Commit
808619b7
authored
Sep 21, 2016
by
Sebastian Lackner
Committed by
Alexandre Julliard
Sep 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Allow to create win32 prefix when directory already exists.
Signed-off-by:
Sebastian Lackner
<
sebastian@fds-team.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6f2f307b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
12 deletions
+7
-12
server.c
dlls/ntdll/server.c
+0
-11
registry.c
server/registry.c
+7
-1
No files found.
dlls/ntdll/server.c
View file @
808619b7
...
...
@@ -1139,17 +1139,6 @@ static void setup_config_dir(void)
mkdir
(
config_dir
,
0777
);
if
(
chdir
(
config_dir
)
==
-
1
)
fatal_perror
(
"chdir to %s
\n
"
,
config_dir
);
if
((
p
=
getenv
(
"WINEARCH"
))
&&
!
strcmp
(
p
,
"win32"
))
{
/* force creation of a 32-bit prefix */
int
fd
=
open
(
"system.reg"
,
O_WRONLY
|
O_CREAT
|
O_EXCL
,
0666
);
if
(
fd
!=
-
1
)
{
static
const
char
regfile
[]
=
"WINE REGISTRY Version 2
\n\n
#arch=win32
\n
"
;
write
(
fd
,
regfile
,
sizeof
(
regfile
)
-
1
);
close
(
fd
);
}
}
MESSAGE
(
"wine: created the configuration directory '%s'
\n
"
,
config_dir
);
}
...
...
server/registry.c
View file @
808619b7
...
...
@@ -1805,6 +1805,7 @@ void init_registry(void)
WCHAR
*
current_user_path
;
struct
unicode_str
current_user_str
;
struct
key
*
key
,
*
hklm
,
*
hkcu
;
char
*
p
;
/* switch to the config dir */
...
...
@@ -1821,7 +1822,12 @@ void init_registry(void)
fatal_error
(
"could not create Machine registry key
\n
"
);
if
(
!
load_init_registry_from_file
(
"system.reg"
,
hklm
))
prefix_type
=
sizeof
(
void
*
)
>
sizeof
(
int
)
?
PREFIX_64BIT
:
PREFIX_32BIT
;
{
if
((
p
=
getenv
(
"WINEARCH"
))
&&
!
strcmp
(
p
,
"win32"
))
prefix_type
=
PREFIX_32BIT
;
else
prefix_type
=
sizeof
(
void
*
)
>
sizeof
(
int
)
?
PREFIX_64BIT
:
PREFIX_32BIT
;
}
else
if
(
prefix_type
==
PREFIX_UNKNOWN
)
prefix_type
=
PREFIX_32BIT
;
...
...
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