Piotr Caban : msvcrt: Don't forward strlen to ntdll.
Alexandre Julliard
julliard at winehq.org
Tue Sep 17 15:25:54 CDT 2013
Module: wine
Branch: master
Commit: f0ec9b134a314b60315575f34b67d4fe1bbc6eb4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f0ec9b134a314b60315575f34b67d4fe1bbc6eb4
Author: Piotr Caban <piotr at codeweavers.com>
Date: Tue Sep 17 14:45:29 2013 +0200
msvcrt: Don't forward strlen to ntdll.
---
dlls/msvcrt/msvcrt.spec | 2 +-
dlls/msvcrt/string.c | 8 ++++++++
2 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/dlls/msvcrt/msvcrt.spec b/dlls/msvcrt/msvcrt.spec
index 9c829d9..7cbef2a 100644
--- a/dlls/msvcrt/msvcrt.spec
+++ b/dlls/msvcrt/msvcrt.spec
@@ -1427,7 +1427,7 @@
@ cdecl strerror(long) MSVCRT_strerror
@ cdecl strerror_s(ptr long long)
@ cdecl strftime(str long str ptr) MSVCRT_strftime
-@ cdecl strlen(str) ntdll.strlen
+@ cdecl strlen(str) MSVCRT_strlen
@ cdecl strncat(str str long) ntdll.strncat
@ cdecl strncat_s(str long str long) MSVCRT_strncat_s
@ cdecl strncmp(str str long) MSVCRT_strncmp
diff --git a/dlls/msvcrt/string.c b/dlls/msvcrt/string.c
index 43ebffa..b59d604 100644
--- a/dlls/msvcrt/string.c
+++ b/dlls/msvcrt/string.c
@@ -781,6 +781,14 @@ MSVCRT_ulong CDECL MSVCRT_strtoul(const char* nptr, char** end, int base)
return ret;
}
+/*********************************************************************
+ * strlen (MSVCRT.@)
+ */
+MSVCRT_size_t __cdecl MSVCRT_strlen(const char *str)
+{
+ return strlen(str);
+}
+
/******************************************************************
* strnlen (MSVCRT.@)
*/
More information about the wine-cvs
mailing list