Francois Gouget : crypt32/tests: Fix compilation on systems that don'
t support nameless unions.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jun 18 08:05:04 CDT 2007
Module: wine
Branch: master
Commit: fe40b2d85ff7105af8a78de341749187284a95eb
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fe40b2d85ff7105af8a78de341749187284a95eb
Author: Francois Gouget <fgouget at free.fr>
Date: Sun Jun 17 12:19:28 2007 +0200
crypt32/tests: Fix compilation on systems that don't support nameless unions.
---
dlls/crypt32/tests/encode.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/crypt32/tests/encode.c b/dlls/crypt32/tests/encode.c
index 5f79639..af08b77 100644
--- a/dlls/crypt32/tests/encode.c
+++ b/dlls/crypt32/tests/encode.c
@@ -4410,7 +4410,7 @@ static void test_encodeAuthorityKeyId2(DWORD dwEncoding)
"Expected E_INVALIDARG, got %08x\n", GetLastError());
/* With an issuer name */
entry.dwAltNameChoice = CERT_ALT_NAME_URL;
- entry.pwszURL = (LPWSTR)url;
+ U(entry).pwszURL = (LPWSTR)url;
ret = CryptEncodeObjectEx(dwEncoding, X509_AUTHORITY_KEY_ID2, &info,
CRYPT_ENCODE_ALLOC_FLAG, NULL, (BYTE *)&buf, &size);
ok(ret, "CryptEncodeObjectEx failed: %08x\n", GetLastError());
@@ -4497,7 +4497,7 @@ static void test_decodeAuthorityKeyId2(DWORD dwEncoding)
ok(info->AuthorityCertIssuer.rgAltEntry[0].dwAltNameChoice ==
CERT_ALT_NAME_URL, "Expected CERT_ALT_NAME_URL, got %d\n",
info->AuthorityCertIssuer.rgAltEntry[0].dwAltNameChoice);
- ok(!lstrcmpW(info->AuthorityCertIssuer.rgAltEntry[0].pwszURL,
+ ok(!lstrcmpW(U(info->AuthorityCertIssuer.rgAltEntry[0]).pwszURL,
url), "Unexpected URL\n");
ok(info->AuthorityCertSerialNumber.cbData == 0,
"Expected no serial number\n");
More information about the wine-cvs
mailing list