Francois Gouget : wintrust/tests: Fix compilation on systems that don' t support nameless unions.
Alexandre Julliard
julliard at winehq.org
Mon Aug 31 10:48:06 CDT 2009
Module: wine
Branch: master
Commit: 6cfce78c7da55d1cddd24aba121dd2a5cbf98952
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6cfce78c7da55d1cddd24aba121dd2a5cbf98952
Author: Francois Gouget <fgouget at free.fr>
Date: Mon Aug 31 11:52:12 2009 +0200
wintrust/tests: Fix compilation on systems that don't support nameless unions.
---
dlls/wintrust/tests/asn.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/wintrust/tests/asn.c b/dlls/wintrust/tests/asn.c
index 96bca50..2fa45c6 100644
--- a/dlls/wintrust/tests/asn.c
+++ b/dlls/wintrust/tests/asn.c
@@ -842,7 +842,7 @@ static void test_encodeSpOpusInfo(void)
ok(!ret && GetLastError() == E_INVALIDARG,
"expected E_INVALIDARG, got %08x\n", GetLastError());
moreInfo.dwLinkChoice = SPC_URL_LINK_CHOICE;
- moreInfo.pwszUrl = winehq;
+ U(moreInfo).pwszUrl = winehq;
ret = pCryptEncodeObjectEx(X509_ASN_ENCODING, SPC_SP_OPUS_INFO_STRUCT,
&info, CRYPT_ENCODE_ALLOC_FLAG, NULL, &buf, &size);
ok(ret, "CryptEncodeObjectEx failed: %08x\n", GetLastError());
@@ -910,7 +910,7 @@ static void test_decodeSpOpusInfo(void)
{
ok(info->pMoreInfo->dwLinkChoice == SPC_URL_LINK_CHOICE,
"unexpected link choice %d\n", info->pMoreInfo->dwLinkChoice);
- ok(!lstrcmpW(info->pMoreInfo->pwszUrl, winehq),
+ ok(!lstrcmpW(U(*info->pMoreInfo).pwszUrl, winehq),
"unexpected link value\n");
}
ok(!info->pPublisherInfo, "expected NULL\n");
@@ -931,7 +931,7 @@ static void test_decodeSpOpusInfo(void)
ok(info->pPublisherInfo->dwLinkChoice == SPC_URL_LINK_CHOICE,
"unexpected link choice %d\n",
info->pPublisherInfo->dwLinkChoice);
- ok(!lstrcmpW(info->pPublisherInfo->pwszUrl, winehq),
+ ok(!lstrcmpW(U(*info->pPublisherInfo).pwszUrl, winehq),
"unexpected link value\n");
}
LocalFree(info);
More information about the wine-cvs
mailing list