[PATCH] kernel32: FindExInfoBasic added

Marcus Meissner marcus at jet.franken.de
Sun Feb 16 14:49:25 CST 2014


From: Marcus Meissner <meissner at suse.de>

Hi,

Lightroom calls it with FindExInfoBasic ... MSDN says its basically same as 
Standard, but without the short filename returned.

As untangling the short filename handling is kind of large, lets just ignore
it.

Ciao, Marcus
---
 dlls/kernel32/file.c | 9 ++++++++-
 include/winbase.h    | 1 +
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/dlls/kernel32/file.c b/dlls/kernel32/file.c
index e205050..a16defb 100644
--- a/dlls/kernel32/file.c
+++ b/dlls/kernel32/file.c
@@ -1867,11 +1867,18 @@ HANDLE WINAPI FindFirstFileExW( LPCWSTR filename, FINDEX_INFO_LEVELS level,
         FIXME("options not implemented 0x%08x 0x%08x\n", search_op, flags );
         return INVALID_HANDLE_VALUE;
     }
-    if (level != FindExInfoStandard)
+    if ((level != FindExInfoStandard) && (level != FindExInfoBasic))
     {
         FIXME("info level %d not implemented\n", level );
         return INVALID_HANDLE_VALUE;
     }
+    if (level == FindExInfoBasic)
+    {
+        static int printed = 0;
+        if (!printed++)
+            FIXME("FindExInfoBasic does not return short pathnames, still doing that.\n");
+    }
+
 
     if (!RtlDosPathNameToNtPathName_U( filename, &nt_name, &mask, NULL ))
     {
diff --git a/include/winbase.h b/include/winbase.h
index eea59da..d6cb7b5 100644
--- a/include/winbase.h
+++ b/include/winbase.h
@@ -285,6 +285,7 @@ DECL_WINELIB_TYPE_AW(LPWIN32_FIND_DATA)
 typedef enum _FINDEX_INFO_LEVELS
 {
 	FindExInfoStandard,
+	FindExInfoBasic,
 	FindExInfoMaxInfoLevel
 } FINDEX_INFO_LEVELS;
 
-- 
1.8.4.5




More information about the wine-patches mailing list