[2/2] msvcrt: Implement _wfindnext64
André Hentschel
nerv at dawncrow.de
Sat Feb 26 12:24:48 CST 2011
also for Wireshark 1.5.0 win64
---
dlls/msvcrt/dir.c | 19 +++++++++++++++++++
dlls/msvcrt/msvcrt.spec | 2 +-
2 files changed, 20 insertions(+), 1 deletions(-)
diff --git a/dlls/msvcrt/dir.c b/dlls/msvcrt/dir.c
index 8fcff3d..a5c4974 100644
--- a/dlls/msvcrt/dir.c
+++ b/dlls/msvcrt/dir.c
@@ -560,6 +560,25 @@ int CDECL MSVCRT__findnext64(long hand, struct MSVCRT__finddata64_t * ft)
}
/*********************************************************************
+ * _wfindnext64 (MSVCRT.@)
+ *
+ * Unicode version of _wfindnext64.
+ */
+int CDECL MSVCRT__wfindnext64(MSVCRT_intptr_t hand, struct MSVCRT__wfinddata64_t * ft)
+{
+ WIN32_FIND_DATAW find_data;
+
+ if (!FindNextFileW((HANDLE)hand, &find_data))
+ {
+ *MSVCRT__errno() = MSVCRT_ENOENT;
+ return -1;
+ }
+
+ msvcrt_wfttofd64(&find_data,ft);
+ return 0;
+}
+
+/*********************************************************************
* _findnext64i32 (MSVCRT.@)
*
* 64-bit/32-bit version of _findnext.
diff --git a/dlls/msvcrt/msvcrt.spec b/dlls/msvcrt/msvcrt.spec
index cc40817..c7f2120 100644
--- a/dlls/msvcrt/msvcrt.spec
+++ b/dlls/msvcrt/msvcrt.spec
@@ -1116,7 +1116,7 @@
@ cdecl _wfindfirsti64(wstr ptr) MSVCRT__wfindfirsti64
@ cdecl _wfindfirst64i32(wstr ptr) MSVCRT__wfindfirst64i32
@ cdecl _wfindnext(long ptr) MSVCRT__wfindnext
-# stub _wfindnext64
+@ cdecl _wfindnext64(long ptr) MSVCRT__wfindnext64
@ cdecl _wfindnext64i32(long ptr) MSVCRT__wfindnext64i32
@ cdecl _wfindnexti64(long ptr) MSVCRT__wfindnexti64
@ cdecl _wfopen(wstr wstr) MSVCRT__wfopen
--
Best Regards, André Hentschel
More information about the wine-patches
mailing list