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
3d57dd3f
Commit
3d57dd3f
authored
May 03, 2007
by
Peter Oberndorfer
Committed by
Alexandre Julliard
May 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Call NtQueryAttributesFile in RtlDoesFileExists_U.
parent
ac3c960c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
directory.c
dlls/ntdll/directory.c
+12
-3
No files found.
dlls/ntdll/directory.c
View file @
3d57dd3f
...
@@ -2013,12 +2013,21 @@ done:
...
@@ -2013,12 +2013,21 @@ done:
BOOLEAN
WINAPI
RtlDoesFileExists_U
(
LPCWSTR
file_name
)
BOOLEAN
WINAPI
RtlDoesFileExists_U
(
LPCWSTR
file_name
)
{
{
UNICODE_STRING
nt_name
;
UNICODE_STRING
nt_name
;
ANSI_STRING
unix_name
;
FILE_BASIC_INFORMATION
basic_info
;
OBJECT_ATTRIBUTES
attr
;
BOOLEAN
ret
;
BOOLEAN
ret
;
if
(
!
RtlDosPathNameToNtPathName_U
(
file_name
,
&
nt_name
,
NULL
,
NULL
))
return
FALSE
;
if
(
!
RtlDosPathNameToNtPathName_U
(
file_name
,
&
nt_name
,
NULL
,
NULL
))
return
FALSE
;
ret
=
(
wine_nt_to_unix_file_name
(
&
nt_name
,
&
unix_name
,
FILE_OPEN
,
FALSE
)
==
STATUS_SUCCESS
);
if
(
ret
)
RtlFreeAnsiString
(
&
unix_name
);
attr
.
Length
=
sizeof
(
attr
);
attr
.
RootDirectory
=
0
;
attr
.
ObjectName
=
&
nt_name
;
attr
.
Attributes
=
OBJ_CASE_INSENSITIVE
;
attr
.
SecurityDescriptor
=
NULL
;
attr
.
SecurityQualityOfService
=
NULL
;
ret
=
NtQueryAttributesFile
(
&
attr
,
&
basic_info
)
==
STATUS_SUCCESS
;
RtlFreeUnicodeString
(
&
nt_name
);
RtlFreeUnicodeString
(
&
nt_name
);
return
ret
;
return
ret
;
}
}
...
...
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