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
c9689897
Commit
c9689897
authored
Oct 22, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Create the syswow64 directory if necessary.
parent
eea0d75e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
process.c
dlls/kernel32/process.c
+10
-7
No files found.
dlls/kernel32/process.c
View file @
c9689897
...
...
@@ -863,6 +863,13 @@ static void init_windows_dirs(void)
DIR_System
=
buffer
;
}
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
()
);
#ifndef _WIN64
/* SysWow64 is always defined on 64-bit */
if
(
is_wow64
)
#endif
...
...
@@ -872,15 +879,11 @@ static void init_windows_dirs(void)
memcpy
(
buffer
,
DIR_Windows
,
len
*
sizeof
(
WCHAR
)
);
memcpy
(
buffer
+
len
,
default_syswow64W
,
sizeof
(
default_syswow64W
)
);
DIR_SysWow64
=
buffer
;
if
(
!
CreateDirectoryW
(
DIR_SysWow64
,
NULL
)
&&
GetLastError
()
!=
ERROR_ALREADY_EXISTS
)
ERR
(
"directory %s could not be created, error %u
\n
"
,
debugstr_w
(
DIR_SysWow64
),
GetLastError
()
);
}
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
()
);
TRACE_
(
file
)(
"WindowsDir = %s
\n
"
,
debugstr_w
(
DIR_Windows
)
);
TRACE_
(
file
)(
"SystemDir = %s
\n
"
,
debugstr_w
(
DIR_System
)
);
...
...
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