mscvrt: add stat64i32 function.
Robert Wilhelm (none)
robert at gaston.
Sun May 16 12:38:56 CDT 2010
---
dlls/msvcr90/msvcr90.spec | 2 +-
dlls/msvcrt/file.c | 14 ++++++++++++++
dlls/msvcrt/msvcrt.spec | 1 +
3 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/dlls/msvcr90/msvcr90.spec b/dlls/msvcr90/msvcr90.spec
index 4cea65e..54f7fb0 100644
--- a/dlls/msvcr90/msvcr90.spec
+++ b/dlls/msvcr90/msvcr90.spec
@@ -912,7 +912,7 @@
@ stub _stat32
@ stub _stat32i64
@ cdecl _stat64(str ptr) msvcrt._stat64
-@ stub _stat64i32
+@ cdecl _stat64i32(str ptr) msvcrt._stat64i32
@ cdecl _statusfp() msvcrt._statusfp
@ stub _statusfp2
@ stub _strcoll_l
diff --git a/dlls/msvcrt/file.c b/dlls/msvcrt/file.c
index 035561b..af1b742 100644
--- a/dlls/msvcrt/file.c
+++ b/dlls/msvcrt/file.c
@@ -1963,6 +1963,20 @@ int CDECL MSVCRT_stat64(const char* path, struct MSVCRT__stat64 * buf)
}
/*********************************************************************
+ * _stat64i32 (MSVCRT.@)
+ */
+int CDECL MSVCRT_stat64i32(const char* path, struct MSVCRT__stat64i32 * buf)
+{
+ int ret;
+ struct MSVCRT__stat64 buf64;
+
+ ret = MSVCRT_stat64(path, &buf64);
+ if (!ret)
+ msvcrt_stat64_to_stat64i32(&buf64, buf);
+ return ret;
+}
+
+/*********************************************************************
* _stati64 (MSVCRT.@)
*/
int CDECL MSVCRT_stati64(const char* path, struct MSVCRT__stati64 * buf)
diff --git a/dlls/msvcrt/msvcrt.spec b/dlls/msvcrt/msvcrt.spec
index b07139a..000e5e6 100644
--- a/dlls/msvcrt/msvcrt.spec
+++ b/dlls/msvcrt/msvcrt.spec
@@ -864,6 +864,7 @@
@ varargs _sscanf_s_l(str str ptr) MSVCRT__sscanf_s_l
@ cdecl _stat(str ptr) MSVCRT_stat
@ cdecl _stat64(str ptr) MSVCRT_stat64
+@ cdecl _stat64i32(str ptr) MSVCRT_stat64i32
@ cdecl _stati64(str ptr) MSVCRT_stati64
@ cdecl _statusfp()
@ cdecl _strcmpi(str str) ntdll._strcmpi
--
1.6.6.1
--=-Kq9HdMsRN147zXFgw23W--
More information about the wine-patches
mailing list