Jactry Zeng : msvcr100: Added _stat32i64 implementation.
Alexandre Julliard
julliard at winehq.org
Thu Feb 14 15:01:32 CST 2013
Module: wine
Branch: master
Commit: e7a3b7bcc708eac448114bb60c693f8f4bac9475
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e7a3b7bcc708eac448114bb60c693f8f4bac9475
Author: Jactry Zeng <jactry92 at gmail.com>
Date: Thu Feb 14 21:12:38 2013 +0800
msvcr100: Added _stat32i64 implementation.
---
dlls/msvcr100/msvcr100.c | 14 ++++++++++++++
dlls/msvcr100/msvcr100.spec | 2 +-
2 files changed, 15 insertions(+), 1 deletions(-)
diff --git a/dlls/msvcr100/msvcr100.c b/dlls/msvcr100/msvcr100.c
index 1eaf9c7..3a0a205 100644
--- a/dlls/msvcr100/msvcr100.c
+++ b/dlls/msvcr100/msvcr100.c
@@ -267,6 +267,20 @@ static void stat64_to_stat32i64(const struct _stat64 *buf64, struct _stat32i64 *
}
/*********************************************************************
+ * _stat32i64 (MSVCR100.@)
+ */
+int CDECL _stat32i64(const char *path, struct _stat32i64* buf)
+{
+ int ret;
+ struct _stat64 buf64;
+
+ ret = _stat64(path, &buf64);
+ if (!ret)
+ stat64_to_stat32i64(&buf64, buf);
+ return ret;
+}
+
+/*********************************************************************
* _wstat32i64 (MSVCR100.@)
*/
int CDECL _wstat32i64(const wchar_t *path, struct _stat32i64* buf)
diff --git a/dlls/msvcr100/msvcr100.spec b/dlls/msvcr100/msvcr100.spec
index a92655a..a201a79 100644
--- a/dlls/msvcr100/msvcr100.spec
+++ b/dlls/msvcr100/msvcr100.spec
@@ -1318,7 +1318,7 @@
@ varargs _sscanf_l(str str ptr) msvcrt._sscanf_l
@ varargs _sscanf_s_l(str str ptr) msvcrt._sscanf_s_l
@ cdecl _stat32(str ptr)
-@ stub _stat32i64
+@ cdecl _stat32i64(str ptr)
@ cdecl _stat64(str ptr) msvcrt._stat64
@ cdecl _stat64i32(str ptr)
@ cdecl _statusfp() msvcrt._statusfp
More information about the wine-cvs
mailing list