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
a2c890c1
Commit
a2c890c1
authored
Jun 19, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Actually return an NT path in wine_unix_to_nt_file_name() for relative paths.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
cee48cc7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
12 deletions
+3
-12
path.c
dlls/ntdll/path.c
+3
-12
No files found.
dlls/ntdll/path.c
View file @
a2c890c1
...
...
@@ -986,24 +986,15 @@ NTSTATUS CDECL wine_unix_to_nt_file_name( const ANSI_STRING *name, UNICODE_STRIN
if
(
path
[
0
]
!=
'/'
)
/* relative path name */
{
WCHAR
*
tmp
;
NTSTATUS
status
;
path
++
;
lenA
--
;
if
(
!
(
tmp
=
RtlAllocateHeap
(
GetProcessHeap
(),
0
,
(
lenA
+
1
)
*
sizeof
(
WCHAR
)
)))
return
STATUS_NO_MEMORY
;
lenW
=
ntdll_umbstowcs
(
path
,
lenA
,
tmp
,
lenA
);
tmp
[
lenW
]
=
0
;
lenW
=
RtlGetFullPathName_U
(
tmp
,
0
,
NULL
,
NULL
);
if
(
!
lenW
||
!
(
nt
->
Buffer
=
RtlAllocateHeap
(
GetProcessHeap
(),
0
,
lenW
)))
{
RtlFreeHeap
(
GetProcessHeap
(),
0
,
tmp
);
return
STATUS_NO_MEMORY
;
}
lenW
=
RtlGetFullPathName_U
(
tmp
,
lenW
,
nt
->
Buffer
,
NULL
);
nt
->
Length
=
lenW
;
nt
->
MaximumLength
=
lenW
+
sizeof
(
WCHAR
);
status
=
RtlDosPathNameToNtPathName_U_WithStatus
(
tmp
,
nt
,
NULL
,
NULL
);
RtlFreeHeap
(
GetProcessHeap
(),
0
,
tmp
);
return
STATUS_SUCCESS
;
return
status
;
}
return
unix_funcs
->
unix_to_nt_file_name
(
name
,
nt
);
}
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