[PATCH] kernel32: Ignore flags on FindFirstFileExW
Andreas Fuchs
anduchs at gmail.com
Mon Sep 29 09:37:41 CDT 2014
Flags CASE_SENSITIVE and LARGE_BUFFER have hardly any functional meaning in
most cases anyways. Ignoring them fixes a crash with MarvelHeroes.
Spit out a warning non-the-less.
---
dlls/kernel32/file.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/dlls/kernel32/file.c b/dlls/kernel32/file.c
index cf683df..512b63e 100644
--- a/dlls/kernel32/file.c
+++ b/dlls/kernel32/file.c
@@ -1865,10 +1865,13 @@ HANDLE WINAPI FindFirstFileExW( LPCWSTR filename, FINDEX_INFO_LEVELS level,
TRACE("%s %d %p %d %p %x\n", debugstr_w(filename), level, data, search_op, filter, flags);
- if ((search_op != FindExSearchNameMatch && search_op != FindExSearchLimitToDirectories)
- || flags != 0)
+ if (flags != 0)
{
- FIXME("options not implemented 0x%08x 0x%08x\n", search_op, flags );
+ FIXME("flags not implemented 0x%08x\n", flags );
+ }
+ if (search_op != FindExSearchNameMatch && search_op != FindExSearchLimitToDirectories)
+ {
+ FIXME("search_op not implemented 0x%08x\n", search_op);
return INVALID_HANDLE_VALUE;
}
if (level != FindExInfoStandard)
--
1.9.1
More information about the wine-patches
mailing list