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
f56be472
Commit
f56be472
authored
Jul 22, 2010
by
Damjan Jovanovic
Committed by
Alexandre Julliard
Jul 23, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Deal with unix paths in wine_get_dos_file_name.
parent
2f877b0a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
path.c
dlls/kernel32/path.c
+10
-5
No files found.
dlls/kernel32/path.c
View file @
f56be472
...
...
@@ -1788,10 +1788,15 @@ WCHAR * CDECL wine_get_dos_file_name( LPCSTR str )
SetLastError
(
RtlNtStatusToDosError
(
status
)
);
return
NULL
;
}
/* get rid of the \??\ prefix */
/* FIXME: should implement RtlNtPathNameToDosPathName and use that instead */
len
=
nt_name
.
Length
-
4
*
sizeof
(
WCHAR
);
memmove
(
nt_name
.
Buffer
,
nt_name
.
Buffer
+
4
,
len
);
nt_name
.
Buffer
[
len
/
sizeof
(
WCHAR
)]
=
0
;
if
(
nt_name
.
Buffer
[
5
]
==
':'
)
{
/* get rid of the \??\ prefix */
/* FIXME: should implement RtlNtPathNameToDosPathName and use that instead */
len
=
nt_name
.
Length
-
4
*
sizeof
(
WCHAR
);
memmove
(
nt_name
.
Buffer
,
nt_name
.
Buffer
+
4
,
len
);
nt_name
.
Buffer
[
len
/
sizeof
(
WCHAR
)]
=
0
;
}
else
nt_name
.
Buffer
[
1
]
=
'\\'
;
return
nt_name
.
Buffer
;
}
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