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
60fc2425
Commit
60fc2425
authored
Nov 01, 2005
by
Bernd Schmidt
Committed by
Alexandre Julliard
Nov 01, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented FindExSearchLimitToDirectories.
parent
74d04a02
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
10 deletions
+16
-10
file.c
dlls/kernel/file.c
+16
-10
No files found.
dlls/kernel/file.c
View file @
60fc2425
...
@@ -55,15 +55,16 @@ HANDLE dos_handles[DOS_TABLE_SIZE];
...
@@ -55,15 +55,16 @@ HANDLE dos_handles[DOS_TABLE_SIZE];
/* info structure for FindFirstFile handle */
/* info structure for FindFirstFile handle */
typedef
struct
typedef
struct
{
{
DWORD
magic
;
/* magic number */
DWORD
magic
;
/* magic number */
HANDLE
handle
;
/* handle to directory */
HANDLE
handle
;
/* handle to directory */
CRITICAL_SECTION
cs
;
/* crit section protecting this structure */
CRITICAL_SECTION
cs
;
/* crit section protecting this structure */
UNICODE_STRING
mask
;
/* file mask */
FINDEX_SEARCH_OPS
search_op
;
/* Flags passed to FindFirst. */
UNICODE_STRING
path
;
/* NT path used to open the directory */
UNICODE_STRING
mask
;
/* file mask */
BOOL
is_root
;
/* is directory the root of the drive? */
UNICODE_STRING
path
;
/* NT path used to open the directory */
UINT
data_pos
;
/* current position in dir data */
BOOL
is_root
;
/* is directory the root of the drive? */
UINT
data_len
;
/* length of dir data */
UINT
data_pos
;
/* current position in dir data */
BYTE
data
[
8192
];
/* directory data */
UINT
data_len
;
/* length of dir data */
BYTE
data
[
8192
];
/* directory data */
}
FIND_FIRST_INFO
;
}
FIND_FIRST_INFO
;
#define FIND_FIRST_MAGIC 0xc0ffee11
#define FIND_FIRST_MAGIC 0xc0ffee11
...
@@ -1500,7 +1501,8 @@ HANDLE WINAPI FindFirstFileExW( LPCWSTR filename, FINDEX_INFO_LEVELS level,
...
@@ -1500,7 +1501,8 @@ HANDLE WINAPI FindFirstFileExW( LPCWSTR filename, FINDEX_INFO_LEVELS level,
TRACE
(
"%s %d %p %d %p %lx
\n
"
,
debugstr_w
(
filename
),
level
,
data
,
search_op
,
filter
,
flags
);
TRACE
(
"%s %d %p %d %p %lx
\n
"
,
debugstr_w
(
filename
),
level
,
data
,
search_op
,
filter
,
flags
);
if
((
search_op
!=
FindExSearchNameMatch
)
||
(
flags
!=
0
))
if
((
search_op
!=
FindExSearchNameMatch
&&
search_op
!=
FindExSearchLimitToDirectories
)
||
flags
!=
0
)
{
{
FIXME
(
"options not implemented 0x%08x 0x%08lx
\n
"
,
search_op
,
flags
);
FIXME
(
"options not implemented 0x%08x 0x%08lx
\n
"
,
search_op
,
flags
);
return
INVALID_HANDLE_VALUE
;
return
INVALID_HANDLE_VALUE
;
...
@@ -1572,6 +1574,7 @@ HANDLE WINAPI FindFirstFileExW( LPCWSTR filename, FINDEX_INFO_LEVELS level,
...
@@ -1572,6 +1574,7 @@ HANDLE WINAPI FindFirstFileExW( LPCWSTR filename, FINDEX_INFO_LEVELS level,
info
->
magic
=
FIND_FIRST_MAGIC
;
info
->
magic
=
FIND_FIRST_MAGIC
;
info
->
data_pos
=
0
;
info
->
data_pos
=
0
;
info
->
data_len
=
0
;
info
->
data_len
=
0
;
info
->
search_op
=
search_op
;
if
(
!
FindNextFileW
(
(
HANDLE
)
info
,
data
))
if
(
!
FindNextFileW
(
(
HANDLE
)
info
,
data
))
{
{
...
@@ -1650,6 +1653,9 @@ BOOL WINAPI FindNextFileW( HANDLE handle, WIN32_FIND_DATAW *data )
...
@@ -1650,6 +1653,9 @@ BOOL WINAPI FindNextFileW( HANDLE handle, WIN32_FIND_DATAW *data )
{
{
if
(
!
check_dir_symlink
(
info
,
dir_info
))
continue
;
if
(
!
check_dir_symlink
(
info
,
dir_info
))
continue
;
}
}
if
(
info
->
search_op
==
FindExSearchLimitToDirectories
&&
(
dir_info
->
FileAttributes
&
FILE_ATTRIBUTE_DIRECTORY
)
==
0
)
continue
;
data
->
dwFileAttributes
=
dir_info
->
FileAttributes
;
data
->
dwFileAttributes
=
dir_info
->
FileAttributes
;
data
->
ftCreationTime
=
*
(
FILETIME
*
)
&
dir_info
->
CreationTime
;
data
->
ftCreationTime
=
*
(
FILETIME
*
)
&
dir_info
->
CreationTime
;
...
...
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