wintrust/tests: Vista/W2K8 have some extra struct members.

oldstable
Paul Vriens 2008-10-09 11:25:05 +02:00 committed by Alexandre Julliard
parent 025a39e209
commit b7787ec0c8
1 changed files with 2 additions and 1 deletions

View File

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