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
156965ea
Commit
156965ea
authored
Feb 12, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Create the windows directories at startup if necessary.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c0f693f6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
12 deletions
+8
-12
process.c
dlls/kernel32/process.c
+0
-12
registry.c
server/registry.c
+8
-0
No files found.
dlls/kernel32/process.c
View file @
156965ea
...
@@ -1125,28 +1125,16 @@ done:
...
@@ -1125,28 +1125,16 @@ done:
/***********************************************************************
/***********************************************************************
* init_windows_dirs
* init_windows_dirs
*
* Create the windows and system directories if necessary.
*/
*/
static
void
init_windows_dirs
(
void
)
static
void
init_windows_dirs
(
void
)
{
{
static
const
WCHAR
default_syswow64W
[]
=
{
'C'
,
':'
,
'\\'
,
'w'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
's'
,
static
const
WCHAR
default_syswow64W
[]
=
{
'C'
,
':'
,
'\\'
,
'w'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
's'
,
'\\'
,
's'
,
'y'
,
's'
,
'w'
,
'o'
,
'w'
,
'6'
,
'4'
,
0
};
'\\'
,
's'
,
'y'
,
's'
,
'w'
,
'o'
,
'w'
,
'6'
,
'4'
,
0
};
if
(
!
CreateDirectoryW
(
DIR_Windows
,
NULL
)
&&
GetLastError
()
!=
ERROR_ALREADY_EXISTS
)
ERR
(
"directory %s could not be created, error %u
\n
"
,
debugstr_w
(
DIR_Windows
),
GetLastError
()
);
if
(
!
CreateDirectoryW
(
DIR_System
,
NULL
)
&&
GetLastError
()
!=
ERROR_ALREADY_EXISTS
)
ERR
(
"directory %s could not be created, error %u
\n
"
,
debugstr_w
(
DIR_System
),
GetLastError
()
);
if
(
is_win64
||
is_wow64
)
/* SysWow64 is always defined on 64-bit */
if
(
is_win64
||
is_wow64
)
/* SysWow64 is always defined on 64-bit */
{
{
DIR_SysWow64
=
default_syswow64W
;
DIR_SysWow64
=
default_syswow64W
;
memcpy
(
winevdm
,
default_syswow64W
,
sizeof
(
default_syswow64W
)
-
sizeof
(
WCHAR
)
);
memcpy
(
winevdm
,
default_syswow64W
,
sizeof
(
default_syswow64W
)
-
sizeof
(
WCHAR
)
);
if
(
!
CreateDirectoryW
(
DIR_SysWow64
,
NULL
)
&&
GetLastError
()
!=
ERROR_ALREADY_EXISTS
)
ERR
(
"directory %s could not be created, error %u
\n
"
,
debugstr_w
(
DIR_SysWow64
),
GetLastError
()
);
}
}
}
}
...
...
server/registry.c
View file @
156965ea
...
@@ -1866,6 +1866,14 @@ void init_registry(void)
...
@@ -1866,6 +1866,14 @@ void init_registry(void)
/* start the periodic save timer */
/* start the periodic save timer */
set_periodic_save_timer
();
set_periodic_save_timer
();
/* create windows directories */
if
(
!
mkdir
(
"drive_c/windows"
,
0777
))
{
mkdir
(
"drive_c/windows/system32"
,
0777
);
if
(
prefix_type
==
PREFIX_64BIT
)
mkdir
(
"drive_c/windows/syswow64"
,
0777
);
}
/* go back to the server dir */
/* go back to the server dir */
if
(
fchdir
(
server_dir_fd
)
==
-
1
)
fatal_error
(
"chdir to server dir: %s
\n
"
,
strerror
(
errno
));
if
(
fchdir
(
server_dir_fd
)
==
-
1
)
fatal_error
(
"chdir to server dir: %s
\n
"
,
strerror
(
errno
));
}
}
...
...
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