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
2536bfd1
Commit
2536bfd1
authored
Dec 04, 2009
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Dec 04, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Explicitly treat the current working directory name as a unix one.
parent
2800970d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
process.c
dlls/kernel32/process.c
+9
-7
No files found.
dlls/kernel32/process.c
View file @
2536bfd1
...
...
@@ -829,14 +829,16 @@ static void init_current_directory( CURDIR *cur_dir )
if
(
pwd
)
{
WCHAR
*
dirW
;
int
lenW
=
MultiByteToWideChar
(
CP_UNIXCP
,
0
,
pwd
,
-
1
,
NULL
,
0
);
if
((
dirW
=
HeapAlloc
(
GetProcessHeap
(),
0
,
lenW
*
sizeof
(
WCHAR
)
)))
ANSI_STRING
unix_name
;
UNICODE_STRING
nt_name
;
RtlInitAnsiString
(
&
unix_name
,
pwd
);
if
(
!
wine_unix_to_nt_file_name
(
&
unix_name
,
&
nt_name
))
{
MultiByteToWideChar
(
CP_UNIXCP
,
0
,
pwd
,
-
1
,
dirW
,
lenW
);
RtlInitUnicodeString
(
&
dir_str
,
dirW
);
RtlSetCurrentDirectory_U
(
&
dir_str
);
RtlFreeUnicodeString
(
&
dir_str
);
UNICODE_STRING
dos_path
;
/* skip the \??\ prefix, nt_name is 0 terminated */
RtlInitUnicodeString
(
&
dos_path
,
nt_name
.
Buffer
+
4
);
RtlSetCurrentDirectory_U
(
&
dos_path
);
RtlFreeUnicodeString
(
&
nt_name
);
}
}
...
...
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