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
20b5c99f
Commit
20b5c99f
authored
Oct 02, 2014
by
Sebastian Lackner
Committed by
Alexandre Julliard
Oct 02, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Add tests for FindFirstFileExA with FIND_FIRST_EX_LARGE_FETCH flag.
parent
710df5fc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
file.c
dlls/kernel32/tests/file.c
+11
-4
winbase.h
include/winbase.h
+3
-0
No files found.
dlls/kernel32/tests/file.c
View file @
20b5c99f
...
...
@@ -2562,7 +2562,7 @@ static void test_FindNextFileA(void)
ok
(
err
==
ERROR_NO_MORE_FILES
,
"GetLastError should return ERROR_NO_MORE_FILES
\n
"
);
}
static
void
test_FindFirstFileExA
(
FINDEX_SEARCH_OPS
search_ops
)
static
void
test_FindFirstFileExA
(
FINDEX_SEARCH_OPS
search_ops
,
DWORD
flags
)
{
WIN32_FIND_DATAA
search_results
;
HANDLE
handle
;
...
...
@@ -2579,12 +2579,17 @@ static void test_FindFirstFileExA(FINDEX_SEARCH_OPS search_ops)
_lclose
(
_lcreat
(
"test-dir
\\
file2"
,
0
));
CreateDirectoryA
(
"test-dir
\\
dir1"
,
NULL
);
SetLastError
(
0xdeadbeef
);
handle
=
pFindFirstFileExA
(
"test-dir
\\
*"
,
FindExInfoStandard
,
&
search_results
,
search_ops
,
NULL
,
0
);
handle
=
pFindFirstFileExA
(
"test-dir
\\
*"
,
FindExInfoStandard
,
&
search_results
,
search_ops
,
NULL
,
flags
);
if
(
handle
==
INVALID_HANDLE_VALUE
&&
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
)
{
win_skip
(
"FindFirstFileExA is not implemented
\n
"
);
goto
cleanup
;
}
if
((
flags
&
FIND_FIRST_EX_LARGE_FETCH
)
&&
handle
==
INVALID_HANDLE_VALUE
&&
GetLastError
()
==
ERROR_INVALID_PARAMETER
)
{
win_skip
(
"FindFirstFileExA flag FIND_FIRST_EX_LARGE_FETCH not supported, skipping test
\n
"
);
goto
cleanup
;
}
ok
(
handle
!=
INVALID_HANDLE_VALUE
,
"FindFirstFile failed (err=%u)
\n
"
,
GetLastError
());
ok
(
strcmp
(
search_results
.
cFileName
,
"."
)
==
0
,
"First entry should be '.', is %s
\n
"
,
search_results
.
cFileName
);
...
...
@@ -4171,9 +4176,11 @@ START_TEST(file)
test_MoveFileW
();
test_FindFirstFileA
();
test_FindNextFileA
();
test_FindFirstFileExA
(
0
);
test_FindFirstFileExA
(
0
,
0
);
test_FindFirstFileExA
(
0
,
FIND_FIRST_EX_LARGE_FETCH
);
/* FindExLimitToDirectories is ignored if the file system doesn't support directory filtering */
test_FindFirstFileExA
(
FindExSearchLimitToDirectories
);
test_FindFirstFileExA
(
FindExSearchLimitToDirectories
,
0
);
test_FindFirstFileExA
(
FindExSearchLimitToDirectories
,
FIND_FIRST_EX_LARGE_FETCH
);
test_LockFile
();
test_file_sharing
();
test_offset_in_overlapped_structure
();
...
...
include/winbase.h
View file @
20b5c99f
...
...
@@ -289,6 +289,9 @@ typedef enum _FINDEX_INFO_LEVELS
FindExInfoMaxInfoLevel
}
FINDEX_INFO_LEVELS
;
#define FIND_FIRST_EX_CASE_SENSITIVE 1
#define FIND_FIRST_EX_LARGE_FETCH 2
typedef
enum
_FINDEX_SEARCH_OPS
{
FindExSearchNameMatch
,
...
...
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