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
362ce5ea
Commit
362ce5ea
authored
Apr 20, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor fixes.
parent
174e2a64
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
path.c
dlls/ntdll/path.c
+4
-4
No files found.
dlls/ntdll/path.c
View file @
362ce5ea
...
...
@@ -333,7 +333,7 @@ BOOLEAN WINAPI RtlDosPathNameToNtPathName_U(PCWSTR dos_path,
if
(
sz
==
0
)
return
FALSE
;
if
(
sz
>
sizeof
(
local
))
{
ptr
=
RtlAllocateHeap
(
GetProcessHeap
(),
0
,
sz
)
;
if
(
!
(
ptr
=
RtlAllocateHeap
(
GetProcessHeap
(),
0
,
sz
)))
return
FALSE
;
sz
=
RtlGetFullPathName_U
(
dos_path
,
sz
,
ptr
,
file_part
);
}
...
...
@@ -346,7 +346,6 @@ BOOLEAN WINAPI RtlDosPathNameToNtPathName_U(PCWSTR dos_path,
}
strcpyW
(
ntpath
->
Buffer
,
NTDosPrefixW
);
offset
=
0
;
switch
(
RtlDetermineDosPathNameType_U
(
ptr
))
{
case
UNC_PATH
:
/* \\foo */
...
...
@@ -357,7 +356,8 @@ BOOLEAN WINAPI RtlDosPathNameToNtPathName_U(PCWSTR dos_path,
offset
=
4
;
break
;
default:
break
;
/* needed to keep gcc quiet */
offset
=
0
;
break
;
}
strcatW
(
ntpath
->
Buffer
,
ptr
+
offset
);
...
...
@@ -917,7 +917,7 @@ NTSTATUS WINAPI RtlSetCurrentDirectory_U(const UNICODE_STRING* dir)
attr
.
SecurityDescriptor
=
NULL
;
attr
.
SecurityQualityOfService
=
NULL
;
nts
=
NtOpenFile
(
&
handle
,
0
,
&
attr
,
&
io
,
0
,
FILE_DIRECTORY_FILE
);
nts
=
NtOpenFile
(
&
handle
,
0
,
&
attr
,
&
io
,
0
,
FILE_DIRECTORY_FILE
|
FILE_SYNCHRONOUS_IO_NONALERT
);
if
(
nts
!=
STATUS_SUCCESS
)
goto
out
;
/* don't keep the directory handle open on removable media */
...
...
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