crypt32: Fix test failure on Win7.

This commit is contained in:
Juan Lang 2009-12-02 10:10:43 -08:00 committed by Alexandre Julliard
parent 052aea2476
commit 63383baed4
1 changed files with 3 additions and 2 deletions

View File

@ -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,