Author: tkreuzer
Date: Fri Jan 15 22:00:20 2010
New Revision: 45089
URL:
http://svn.reactos.org/svn/reactos?rev=45089&view=rev
Log:
[CRT]
Patch by Jose Catena:
vsnprintf: added support for ll size specifier
See issue #5122 for more details.
Modified:
trunk/reactos/lib/rtl/sprintf.c
trunk/reactos/lib/rtl/swprintf.c
Modified: trunk/reactos/lib/rtl/sprintf.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/sprintf.c?rev=4508…
==============================================================================
--- trunk/reactos/lib/rtl/sprintf.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/sprintf.c [iso-8859-1] Fri Jan 15 22:00:20 2010
@@ -451,7 +451,10 @@
/* get the conversion qualifier */
qualifier = -1;
- if (*fmt == 'h' || *fmt == 'l' || *fmt == 'L' || *fmt ==
'w') {
+ if (*fmt == 'l' && *(fmt+1) == 'l') {
+ qualifier = 'I';
+ fmt += 2;
+ } else if (*fmt == 'h' || *fmt == 'l' || *fmt == 'L' || *fmt ==
'w') {
qualifier = *fmt;
++fmt;
} else if (*fmt == 'I' && *(fmt+1) == '6' && *(fmt+2)
== '4') {
Modified: trunk/reactos/lib/rtl/swprintf.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/swprintf.c?rev=450…
==============================================================================
--- trunk/reactos/lib/rtl/swprintf.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/swprintf.c [iso-8859-1] Fri Jan 15 22:00:20 2010
@@ -449,7 +449,10 @@
/* get the conversion qualifier */
qualifier = -1;
- if (*fmt == L'h' || *fmt == L'l' || *fmt == L'L' || *fmt ==
L'w') {
+ if (*fmt == L'l' && *(fmt+1) == L'l') {
+ qualifier = L'I';
+ fmt += 2;
+ } else if (*fmt == L'h' || *fmt == L'l' || *fmt == L'L' || *fmt
== L'w') {
qualifier = *fmt;
++fmt;
} else if (*fmt == L'I' && *(fmt+1) == L'6' && *(fmt+2)
== L'4') {