Juan Lang : crypt32: Fix Mingw compile.
Module: wine Branch: refs/heads/master Commit: d17b7306115841b6f2e96f84b1872fd2a7db1c3e URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=d17b7306115841b6f2e96f84... Author: Juan Lang <juan(a)codeweavers.com> Date: Sun Feb 5 12:18:39 2006 +0100 crypt32: Fix Mingw compile. --- dlls/crypt32/tests/str.c | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/dlls/crypt32/tests/str.c b/dlls/crypt32/tests/str.c index bd6587d..a099ba7 100644 --- a/dlls/crypt32/tests/str.c +++ b/dlls/crypt32/tests/str.c @@ -25,7 +25,11 @@ #include <wincrypt.h> #include "wine/test.h" + +/*#define DUMP_STRINGS*/ +#ifdef DUMP_STRINGS #include "wine/debug.h" +#endif typedef struct _CertRDNAttrEncoding { LPCSTR pszObjId; @@ -278,8 +282,11 @@ static void test_CertRDNValueToStrW(void buffer, sizeof(buffer) / sizeof(buffer[0])); ok(ret == lstrlenW(attrs[i].str) + 1, "Expected length %d, got %ld\n", lstrlenW(attrs[i].str) + 1, ret); - ok(!lstrcmpW(buffer, attrs[i].str), "Expected %s, got %s\n", + ok(!lstrcmpW(buffer, attrs[i].str), "Unexpected value\n"); +#ifdef DUMP_STRINGS + trace("Expected %s, got %s\n", wine_dbgstr_w(attrs[i].str), wine_dbgstr_w(buffer)); +#endif } } @@ -357,8 +364,11 @@ static void test_NameToStrConversionW(PC sizeof(buffer) / sizeof(buffer[0])); ok(i == lstrlenW(expected) + 1, "Expected %d chars, got %ld\n", lstrlenW(expected) + 1, i); - ok(!lstrcmpW(buffer, expected), "Expected %s, got %s\n", + ok(!lstrcmpW(buffer, expected), "Unexpected value\n"); +#ifdef DUMP_STRINGS + trace("Expected %s, got %s\n", wine_dbgstr_w(expected), wine_dbgstr_w(buffer)); +#endif } static void test_CertNameToStrW(void)
participants (1)
-
Alexandre Julliard