Piotr Caban : msvcrt: Don't forward _itoa to ntdll.

Alexandre Julliard julliard at winehq.org
Tue Oct 1 14:54:27 CDT 2013


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

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Tue Oct  1 11:28:09 2013 +0200

msvcrt: Don't forward _itoa 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 6089656..7cfc370 100644
--- a/dlls/msvcrt/msvcrt.spec
+++ b/dlls/msvcrt/msvcrt.spec
@@ -646,7 +646,7 @@
 # stub _iswupper_l(long ptr)
 # stub _iswxdigit_l(long ptr)
 @ cdecl _isxdigit_l(long ptr) MSVCRT__isxdigit_l
-@ cdecl _itoa(long ptr long) ntdll._itoa
+@ cdecl _itoa(long ptr long)
 @ cdecl _itoa_s(long ptr long long)
 @ cdecl _itow(long ptr long) ntdll._itow
 @ cdecl _itow_s(long ptr long long)
diff --git a/dlls/msvcrt/string.c b/dlls/msvcrt/string.c
index 5678a89..a6b328b 100644
--- a/dlls/msvcrt/string.c
+++ b/dlls/msvcrt/string.c
@@ -1139,6 +1139,14 @@ int CDECL _itoa_s(int value, char *str, MSVCRT_size_t size, int radix)
 }
 
 /*********************************************************************
+ *  _itoa (MSVCRT.@)
+ */
+char* CDECL _itoa(int value, char *str, int radix)
+{
+    return _itoa_s(value, str, MSVCRT_SIZE_MAX, radix) ? NULL : str;
+}
+
+/*********************************************************************
  *  _itow_s (MSVCRT.@)
  */
 int CDECL _itow_s(int value, MSVCRT_wchar_t *str, MSVCRT_size_t size, int radix)




More information about the wine-cvs mailing list