Paul Gofman : crypt32/tests: Handle CERT_NAME_SEARCH_ALL_NAMES_FLAG being unsupported before Win8.
Alexandre Julliard
julliard at winehq.org
Thu May 12 15:55:50 CDT 2022
Module: wine
Branch: master
Commit: fc4067a2ac897c8252a61c2e29bdddfab9f0e176
URL: https://source.winehq.org/git/wine.git/?a=commit;h=fc4067a2ac897c8252a61c2e29bdddfab9f0e176
Author: Paul Gofman <pgofman at codeweavers.com>
Date: Wed May 11 11:42:45 2022 -0500
crypt32/tests: Handle CERT_NAME_SEARCH_ALL_NAMES_FLAG being unsupported before Win8.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52961
Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/crypt32/tests/str.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/dlls/crypt32/tests/str.c b/dlls/crypt32/tests/str.c
index 5fb05bdb836..29a948ed0e9 100644
--- a/dlls/crypt32/tests/str.c
+++ b/dlls/crypt32/tests/str.c
@@ -864,6 +864,13 @@ static void test_CertGetNameString_value_(unsigned int line, PCCERT_CONTEXT cont
expectedW[expected_len++] = 0;
len = CertGetNameStringA(context, type, flags, type_para, NULL, 0);
+ if (flags & CERT_NAME_SEARCH_ALL_NAMES_FLAG && ((type == CERT_NAME_DNS_TYPE && len < expected_len)
+ || (type != CERT_NAME_DNS_TYPE && len > expected_len)))
+ {
+ /* Supported since Win8. */
+ win_skip("line %u: CERT_NAME_SEARCH_ALL_NAMES_FLAG is not supported.\n", line);
+ return;
+ }
ok(len == expected_len, "line %u: unexpected length %ld, expected %ld.\n", line, len, expected_len);
memset(str, 0xcc, len);
retlen = CertGetNameStringA(context, type, flags, type_para, str, len);
More information about the wine-cvs
mailing list