Juan Lang : crypt32: Fix test failure on Win7.
Alexandre Julliard
julliard at winehq.org
Thu Dec 3 10:29:50 CST 2009
Module: wine
Branch: master
Commit: 63383baed4faa586f17e28d459c9c2180f8d1b5c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=63383baed4faa586f17e28d459c9c2180f8d1b5c
Author: Juan Lang <juan.lang at gmail.com>
Date: Wed Dec 2 10:10:43 2009 -0800
crypt32: Fix test failure on Win7.
---
dlls/crypt32/tests/encode.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/crypt32/tests/encode.c b/dlls/crypt32/tests/encode.c
index 316a9f8..0f8ae7f 100644
--- a/dlls/crypt32/tests/encode.c
+++ b/dlls/crypt32/tests/encode.c
@@ -1387,8 +1387,9 @@ static void test_decodeNameValue(DWORD dwEncoding)
embeddedNullNameValue.encoded, embeddedNullNameValue.encodedSize,
CRYPT_DECODE_ALLOC_FLAG | CRYPT_DECODE_SHARE_OID_STRING_FLAG, NULL,
&buf, &bufSize);
- ok(ret, "Value type %d: CryptDecodeObjectEx failed: %08x\n",
- embeddedNullNameValue.value.dwValueType, GetLastError());
+ /* Some Windows versions disallow name values with embedded NULLs, so
+ * either success or failure is acceptable.
+ */
if (ret)
{
CERT_NAME_VALUE rdnEncodedValue = { CERT_RDN_ENCODED_BLOB,
More information about the wine-cvs
mailing list