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
6677565f
Commit
6677565f
authored
Dec 02, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Don't report a file id for directory entries that are on a different device.
parent
d189ed6f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
directory.c
dlls/ntdll/directory.c
+6
-0
No files found.
dlls/ntdll/directory.c
View file @
6677565f
...
...
@@ -166,6 +166,7 @@ static const int is_case_sensitive = FALSE;
UNICODE_STRING
windows_dir
=
{
0
,
0
,
NULL
};
/* windows directory */
UNICODE_STRING
system_dir
=
{
0
,
0
,
NULL
};
/* system directory */
static
struct
file_identity
curdir
;
static
struct
file_identity
windir
;
static
RTL_CRITICAL_SECTION
dir_section
;
...
...
@@ -1025,6 +1026,7 @@ static union file_directory_info *append_entry( void *info_ptr, IO_STATUS_BLOCK
io
->
u
.
Status
=
STATUS_BUFFER_OVERFLOW
;
}
info
=
(
union
file_directory_info
*
)((
char
*
)
info_ptr
+
io
->
Information
);
if
(
st
.
st_dev
!=
curdir
.
dev
)
st
.
st_ino
=
0
;
/* ignore inode if on a different device */
/* all the structures start with a FileDirectoryInformation layout */
fill_stat_info
(
&
st
,
info
,
class
);
info
->
dir
.
NextEntryOffset
=
total_len
;
...
...
@@ -1713,6 +1715,10 @@ NTSTATUS WINAPI NtQueryDirectoryFile( HANDLE handle, HANDLE event,
cwd
=
open
(
"."
,
O_RDONLY
);
if
(
fchdir
(
fd
)
!=
-
1
)
{
struct
stat
st
;
fstat
(
fd
,
&
st
);
curdir
.
dev
=
st
.
st_dev
;
curdir
.
ino
=
st
.
st_ino
;
#ifdef VFAT_IOCTL_READDIR_BOTH
if
((
read_directory_vfat
(
fd
,
io
,
buffer
,
length
,
single_entry
,
mask
,
restart_scan
,
info_class
))
!=
-
1
)
goto
done
;
...
...
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