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
91f2bdd0
Commit
91f2bdd0
authored
Nov 04, 2014
by
Sebastian Lackner
Committed by
Alexandre Julliard
Nov 04, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Implement FindFirstFileExW level FindExInfoBasic.
parent
ef1aad98
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
file.c
dlls/kernel32/file.c
+11
-3
No files found.
dlls/kernel32/file.c
View file @
91f2bdd0
...
...
@@ -57,6 +57,7 @@ typedef struct
HANDLE
handle
;
/* handle to directory */
CRITICAL_SECTION
cs
;
/* crit section protecting this structure */
FINDEX_SEARCH_OPS
search_op
;
/* Flags passed to FindFirst. */
FINDEX_INFO_LEVELS
level
;
/* Level passed to FindFirst */
UNICODE_STRING
mask
;
/* file mask */
UNICODE_STRING
path
;
/* NT path used to open the directory */
BOOL
is_root
;
/* is directory the root of the drive? */
...
...
@@ -1875,7 +1876,7 @@ HANDLE WINAPI FindFirstFileExW( LPCWSTR filename, FINDEX_INFO_LEVELS level,
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
INVALID_HANDLE_VALUE
;
}
if
(
level
!=
FindExInfoStandard
)
if
(
level
!=
FindExInfoStandard
&&
level
!=
FindExInfoBasic
)
{
FIXME
(
"info level %d not implemented
\n
"
,
level
);
SetLastError
(
ERROR_INVALID_PARAMETER
);
...
...
@@ -1979,6 +1980,7 @@ HANDLE WINAPI FindFirstFileExW( LPCWSTR filename, FINDEX_INFO_LEVELS level,
info
->
data_size
=
0
;
info
->
data
=
NULL
;
info
->
search_op
=
search_op
;
info
->
level
=
level
;
if
(
device
)
{
...
...
@@ -2141,8 +2143,14 @@ BOOL WINAPI FindNextFileW( HANDLE handle, WIN32_FIND_DATAW *data )
memcpy
(
data
->
cFileName
,
dir_info
->
FileName
,
dir_info
->
FileNameLength
);
data
->
cFileName
[
dir_info
->
FileNameLength
/
sizeof
(
WCHAR
)]
=
0
;
memcpy
(
data
->
cAlternateFileName
,
dir_info
->
ShortName
,
dir_info
->
ShortNameLength
);
data
->
cAlternateFileName
[
dir_info
->
ShortNameLength
/
sizeof
(
WCHAR
)]
=
0
;
if
(
info
->
level
!=
FindExInfoBasic
)
{
memcpy
(
data
->
cAlternateFileName
,
dir_info
->
ShortName
,
dir_info
->
ShortNameLength
);
data
->
cAlternateFileName
[
dir_info
->
ShortNameLength
/
sizeof
(
WCHAR
)]
=
0
;
}
else
data
->
cAlternateFileName
[
0
]
=
0
;
TRACE
(
"returning %s (%s)
\n
"
,
debugstr_w
(
data
->
cFileName
),
debugstr_w
(
data
->
cAlternateFileName
)
);
...
...
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