Martin Storsjo : ucrtbase: Implement the new printf corner case behaviour.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Nov 4 09:40:40 CST 2015


Module: wine
Branch: master
Commit: b9d0f5d562b1a5e96a32779f8906e50c0e4ba206
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b9d0f5d562b1a5e96a32779f8906e50c0e4ba206

Author: Martin Storsjo <martin at 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 at martin.st>
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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=b9d0f5d562b1a5e96a32779f8906e50c0e4ba206



More information about the wine-cvs mailing list