From 4f6d8e38f40b4b33cb398af4880f8c41f2e42c5c Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Tue, 6 Jun 2006 21:42:42 +0000 Subject: [PATCH] implement datatype I32 for *printf string version we have a *printf for files as well now 29 fails in wine test msvcrt printf svn path=/trunk/; revision=22252 --- reactos/lib/rtl/sprintf.c | 5 ++++- reactos/lib/rtl/swprintf.c | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/reactos/lib/rtl/sprintf.c b/reactos/lib/rtl/sprintf.c index 38673863a0a..e020319603a 100644 --- a/reactos/lib/rtl/sprintf.c +++ b/reactos/lib/rtl/sprintf.c @@ -459,7 +459,10 @@ int _vsnprintf(char *buf, size_t cnt, const char *fmt, va_list args) } else if (*fmt == 'I' && *(fmt+1) == '6' && *(fmt+2) == '4') { qualifier = *fmt; fmt += 3; - } + } else if (*fmt == 'I' && *(fmt+1) == '3' && *(fmt+2) == '2') { + qualifier = 'l'; + fmt += 3; + } /* default base */ base = 10; diff --git a/reactos/lib/rtl/swprintf.c b/reactos/lib/rtl/swprintf.c index 47be9107d1b..4a71ffda121 100644 --- a/reactos/lib/rtl/swprintf.c +++ b/reactos/lib/rtl/swprintf.c @@ -457,7 +457,10 @@ int _vsnwprintf(wchar_t *buf, size_t cnt, const wchar_t *fmt, va_list args) } else if (*fmt == L'I' && *(fmt+1) == L'6' && *(fmt+2) == L'4') { qualifier = *fmt; fmt += 3; - } + } else if (*fmt == L'I' && *(fmt+1) == L'3' && *(fmt+2) == L'2') { + qualifier = L'l'; + fmt += 3; + } /* default base */ base = 10;