=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: wininet/tests: Skip tests when querying INTERNET_OPTION_SECURITY_CERTIFICATE_STRUCT fails (newer win10).

Alexandre Julliard julliard at winehq.org
Mon Sep 24 15:48:24 CDT 2018


Module: wine
Branch: master
Commit: 065ab77fc1433ef648ad4a31ecc1090959d7df19
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=065ab77fc1433ef648ad4a31ecc1090959d7df19

Author: André Hentschel <nerv at dawncrow.de>
Date:   Tue Sep 18 20:23:46 2018 +0200

wininet/tests: Skip tests when querying INTERNET_OPTION_SECURITY_CERTIFICATE_STRUCT fails (newer win10).

Signed-off-by: André Hentschel <nerv at dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wininet/tests/http.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dlls/wininet/tests/http.c b/dlls/wininet/tests/http.c
index ace8512..9ec4902 100644
--- a/dlls/wininet/tests/http.c
+++ b/dlls/wininet/tests/http.c
@@ -5569,6 +5569,12 @@ static void test_cert_struct(HINTERNET req, const cert_struct_test_t *test)
 
     size = sizeof(info);
     res = InternetQueryOptionA(req, INTERNET_OPTION_SECURITY_CERTIFICATE_STRUCT, &info, &size);
+    if (!res)
+    {
+        win_skip("Querying INTERNET_OPTION_SECURITY_CERTIFICATE_STRUCT failed, skipping tests\n");
+        return;
+    }
+
     ok(res, "InternetQueryOption failed: %u\n", GetLastError());
     ok(size == sizeof(info), "size = %u\n", size);
 




More information about the wine-cvs mailing list