[PATCH 1/1] crypt32/tests: Handle CERT_NAME_SEARCH_ALL_NAMES_FLAG being unsupported before Win8.
Paul Gofman
wine at gitlab.winehq.org
Wed May 11 11:51:01 CDT 2022
From: Paul Gofman <pgofman at codeweavers.com>
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52961
Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
---
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);
--
GitLab
https://gitlab.winehq.org/wine/wine/-/merge_requests/58
More information about the wine-devel
mailing list