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.

svn path=/trunk/; revision=50866
This commit is contained in:
Timo Kreuzer 2011-02-22 17:29:32 +00:00
parent 75e685f7ef
commit e9b58620aa

View file

@ -587,6 +587,9 @@ streamout(FILE *stream, const TCHAR *format, va_list argptr)
if (flags & FLAG_SPECIAL)
{
prefix = &digits[16];
#ifdef _USER32_WSPRINTF
fieldwidth += 2;
#endif
}
case _T('u'):