Author: tkreuzer
Date: Tue Feb 22 17:29:32 2011
New Revision: 50866

URL: http://svn.reactos.org/svn/reactos?rev=50866&view=rev
Log:
[CRT]
Fix special behaviour of wsprintf: when used with # flag, the "0x" prefix does 
not count into the field width, so we have to add additional 2 characters here. 
Fixes Opera installer.
See issue #5900 for more details.

Modified:
    trunk/reactos/lib/sdk/crt/printf/streamout.c

Modified: trunk/reactos/lib/sdk/crt/printf/streamout.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/printf/streamout.c?rev=50866&r1=50865&r2=50866&view=diff
==============================================================================
--- trunk/reactos/lib/sdk/crt/printf/streamout.c [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/printf/streamout.c [iso-8859-1] Tue Feb 22 
17:29:32 2011
@@ -587,6 +587,9 @@
                 if (flags & FLAG_SPECIAL)
                 {
                     prefix = &digits[16];
+#ifdef _USER32_WSPRINTF
+                    fieldwidth += 2;
+#endif
                 }
 
             case _T('u'):


Reply via email to