From b7787ec0c8737c5f3c6fcb1c9f1bb400131c185e Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Thu, 9 Oct 2008 11:25:05 +0200 Subject: [PATCH] wintrust/tests: Vista/W2K8 have some extra struct members. --- dlls/wintrust/tests/softpub.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/wintrust/tests/softpub.c b/dlls/wintrust/tests/softpub.c index 5509bce1c33..5c5d892d45d 100644 --- a/dlls/wintrust/tests/softpub.c +++ b/dlls/wintrust/tests/softpub.c @@ -506,7 +506,8 @@ static void test_get_known_usages(void) */ for (ptr = usages; *ptr; ptr++) { - ok((*ptr)->cbSize == sizeof(CRYPT_OID_INFO), + ok((*ptr)->cbSize == sizeof(CRYPT_OID_INFO) || + (*ptr)->cbSize == (sizeof(CRYPT_OID_INFO) + 2 * sizeof(LPCWSTR)), /* Vista */ "unexpected size %d\n", (*ptr)->cbSize); /* Each returned usage is in the CRYPT_ENHKEY_USAGE_OID_GROUP_ID group */ ok((*ptr)->dwGroupId == CRYPT_ENHKEY_USAGE_OID_GROUP_ID,