mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
[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. svn path=/trunk/; revision=50866
This commit is contained in:
parent
75e685f7ef
commit
e9b58620aa
1 changed files with 3 additions and 0 deletions
|
@ -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'):
|
||||
|
|
Loading…
Reference in a new issue