msvcrt: Fix handling of 'h' prefix in swprintf.
commitbc83ae9fda6bf4a381e881523c3be3dfb3a688b2
authorPeter Beutner <p.beutner@gmx.net>
Tue, 16 May 2006 16:18:51 +0000 (16 18:18 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 16 May 2006 18:21:44 +0000 (16 20:21 +0200)
treec6cf5de1a07e013b325ac5bbe9b03249e7829782
parent854808d9d465bc154863e2dc890f7b9c5d6dc919
msvcrt: Fix handling of 'h' prefix in swprintf.

- '%hs' in widechar string functions is wrongly recognized as
  a widechar string. Fix this by always checking the prefix first.
- add testcase
- remove code duplication in %c/%s handling by moving code into a function.
dlls/msvcrt/tests/printf.c
dlls/msvcrt/wcs.c