[PATCH v2 1/7] crypt32/tests: Add tests for short return string buffer.

Hans Leidekker hans at codeweavers.com
Thu Apr 21 06:16:52 CDT 2022


On Thu, 2022-04-14 at 20:57 +0300, Paul Gofman wrote:
> Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
> ---
>  dlls/crypt32/tests/str.c | 332 +++++++++++++++------------------------
>  1 file changed, 127 insertions(+), 205 deletions(-)

This produces a warning here:

../wine/dlls/crypt32/tests/str.c: In function ‘test_NameToStrConversionW_’:
../wine/dlls/crypt32/tests/str.c:440:57: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ {aka ‘long long unsigned int’} [-Wformat=]
  440 |     ok(len == wcslen(expected) + 1, "line %u: expected %u chars, got %lu\n", line, wcslen(expected) + 1, len);
      |                                                        ~^                          ~~~~~~~~~~~~~~~~~~~~
      |                                                         |                                           |
      |                                                         unsigned int                                size_t {aka long long unsigned int}
      |                                                        %I64u

Otherwise this series looks good to me.





More information about the wine-devel mailing list