Martin Storsjo : ucrtbase: Implement the new printf corner case behaviour.
Module: wine Branch: master Commit: b9d0f5d562b1a5e96a32779f8906e50c0e4ba206 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b9d0f5d562b1a5e96a32779f89... Author: Martin Storsjo <martin(a)martin.st> Date: Tue Nov 3 20:40:38 2015 +0200 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(a)martin.st> Signed-off-by: Piotr Caban <piotr(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/msvcrt/file.c | 6 ++- dlls/msvcrt/msvcrt.h | 3 +- dlls/msvcrt/printf.h | 51 +++++++++++++++++++------ dlls/msvcrt/wcs.c | 35 +++++++++++------ dlls/ucrtbase/tests/printf.c | 90 ++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 158 insertions(+), 27 deletions(-) Diff: http://source.winehq.org/git/wine.git/?a=commitdiff;h=b9d0f5d562b1a5e96a3277...
participants (1)
-
Alexandre Julliard