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

Alexandre Julliard julliard at winehq.org
Thu Oct 9 07:43:09 CDT 2008


Module: wine
Branch: master
Commit: b7787ec0c8737c5f3c6fcb1c9f1bb400131c185e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b7787ec0c8737c5f3c6fcb1c9f1bb400131c185e

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Thu Oct  9 11:25:05 2008 +0200

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

---

 dlls/wintrust/tests/softpub.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/wintrust/tests/softpub.c b/dlls/wintrust/tests/softpub.c
index 5509bce..5c5d892 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,




More information about the wine-cvs mailing list