Eryk Wieliczko : msvcrt: Implement _wfindnext64i32.

Alexandre Julliard julliard at winehq.org
Tue Nov 23 09:38:23 CST 2010


Module: wine
Branch: master
Commit: 40874d91d9651a9f70394588e1e3e5a773b2625b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=40874d91d9651a9f70394588e1e3e5a773b2625b

Author: Eryk Wieliczko <ewdevel at gmail.com>
Date:   Sat Nov 20 15:15:00 2010 +0100

msvcrt: Implement _wfindnext64i32.

---

 dlls/msvcr100/msvcr100.spec |    2 +-
 dlls/msvcr80/msvcr80.spec   |    2 +-
 dlls/msvcr90/msvcr90.spec   |    2 +-
 dlls/msvcrt/dir.c           |   19 +++++++++++++++++++
 dlls/msvcrt/msvcrt.spec     |    1 +
 5 files changed, 23 insertions(+), 3 deletions(-)

diff --git a/dlls/msvcr100/msvcr100.spec b/dlls/msvcr100/msvcr100.spec
index c35e42b..8e71b31 100644
--- a/dlls/msvcr100/msvcr100.spec
+++ b/dlls/msvcr100/msvcr100.spec
@@ -1345,7 +1345,7 @@
 @ stub _wfindnext32
 @ stub _wfindnext32i64
 @ stub _wfindnext64
-@ stub _wfindnext64i32
+@ cdecl _wfindnext64i32(wstr ptr) msvcrt._wfindnext64i32
 @ cdecl _wfopen(wstr wstr) msvcrt._wfopen
 @ cdecl _wfopen_s(ptr wstr wstr) msvcrt._wfopen_s
 @ cdecl _wfreopen(wstr wstr ptr) msvcrt._wfreopen
diff --git a/dlls/msvcr80/msvcr80.spec b/dlls/msvcr80/msvcr80.spec
index abc7db0..5e52a28 100644
--- a/dlls/msvcr80/msvcr80.spec
+++ b/dlls/msvcr80/msvcr80.spec
@@ -1198,7 +1198,7 @@
 @ stub _wfindnext32
 @ stub _wfindnext32i64
 @ stub _wfindnext64
-@ stub _wfindnext64i32
+@ cdecl _wfindnext64i32(wstr ptr) msvcrt._wfindnext64i32
 @ cdecl _wfopen(wstr wstr) msvcrt._wfopen
 @ cdecl _wfopen_s(ptr wstr wstr) msvcrt._wfopen_s
 @ cdecl _wfreopen(wstr wstr ptr) msvcrt._wfreopen
diff --git a/dlls/msvcr90/msvcr90.spec b/dlls/msvcr90/msvcr90.spec
index 2d5cc32..6b2d664 100644
--- a/dlls/msvcr90/msvcr90.spec
+++ b/dlls/msvcr90/msvcr90.spec
@@ -1185,7 +1185,7 @@
 @ stub _wfindnext32
 @ stub _wfindnext32i64
 @ stub _wfindnext64
-@ stub _wfindnext64i32
+@ cdecl _wfindnext64i32(wstr ptr) msvcrt._wfindnext64i32
 @ cdecl _wfopen(wstr wstr) msvcrt._wfopen
 @ cdecl _wfopen_s(ptr wstr wstr) msvcrt._wfopen_s
 @ cdecl _wfreopen(wstr wstr ptr) msvcrt._wfreopen
diff --git a/dlls/msvcrt/dir.c b/dlls/msvcrt/dir.c
index 415c9eb..1e8fd8d 100644
--- a/dlls/msvcrt/dir.c
+++ b/dlls/msvcrt/dir.c
@@ -557,6 +557,25 @@ int CDECL MSVCRT__wfindnexti64(MSVCRT_intptr_t hand, struct MSVCRT__wfinddatai64
 }
 
 /*********************************************************************
+ *		_wfindnext64i32 (MSVCRT.@)
+ *
+ * Unicode version of _findnext64i32.
+ */
+int CDECL MSVCRT__wfindnext64i32(MSVCRT_intptr_t hand, struct MSVCRT__wfinddata64i32_t * ft)
+{
+  WIN32_FIND_DATAW find_data;
+
+  if (!FindNextFileW((HANDLE)hand, &find_data))
+  {
+    *MSVCRT__errno() = MSVCRT_ENOENT;
+    return -1;
+  }
+
+  msvcrt_wfttofd64i32(&find_data,ft);
+  return 0;
+}
+
+/*********************************************************************
  *		_getcwd (MSVCRT.@)
  *
  * Get the current working directory.
diff --git a/dlls/msvcrt/msvcrt.spec b/dlls/msvcrt/msvcrt.spec
index de3dded..11d0a49 100644
--- a/dlls/msvcrt/msvcrt.spec
+++ b/dlls/msvcrt/msvcrt.spec
@@ -1117,6 +1117,7 @@
 @ cdecl _wfindfirst64i32(wstr ptr) MSVCRT__wfindfirst64i32
 @ cdecl _wfindnext(long ptr) MSVCRT__wfindnext
 # stub _wfindnext64
+@ cdecl _wfindnext64i32(long ptr) MSVCRT__wfindnext64i32
 @ cdecl _wfindnexti64(long ptr) MSVCRT__wfindnexti64
 @ cdecl _wfopen(wstr wstr) MSVCRT__wfopen
 @ cdecl _wfopen_s(ptr wstr wstr) MSVCRT__wfopen_s




More information about the wine-cvs mailing list