ucrtbase: Implement the new printf corner case behaviour.
commitb9d0f5d562b1a5e96a32779f8906e50c0e4ba206
authorMartin Storsjo <martin@martin.st>
Tue, 3 Nov 2015 18:40:38 +0000 (3 20:40 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 4 Nov 2015 10:19:12 +0000 (4 19:19 +0900)
treeee43bc27162f7d11296531b57080b9ebc3c5e130
parent1d17e8502668c1d17cd2eba73eabd93cb2f1b92c
ucrtbase: Implement the new printf corner case behaviour.

Check the option flags whether the new or old legacy behaviours are
wanted.

For _MSVCR_VER < 140, don't check the option flags but hardcode them to
TRUE. (This avoids having to manually add all three flags into every
caller of pf_printf.) Mask out any other flags, to avoid other
out-of-range flags to be interpreted as the other flags (positional
params, invoke invalid param handler).

Signed-off-by: Martin Storsjo <martin@martin.st>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/msvcrt/file.c
dlls/msvcrt/msvcrt.h
dlls/msvcrt/printf.h
dlls/msvcrt/wcs.c
dlls/ucrtbase/tests/printf.c