From 8f0eb2c6b0371afc60028398b908f4500979e7d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Nordheim?= Date: Wed, 16 Dec 2020 11:55:54 +0100 Subject: [PATCH] QSslSocket_schannel: Don't compare against undefined value Something defined is always greater than undefined Fixes: QTBUG-89530 Change-Id: I7633dd4233f7b13c3c5be17352841ec873531ef9 Reviewed-by: Timur Pocheptsov (cherry picked from commit 3eb35d324186b17d00f158d71a251f1bf93b6d2d) Reviewed-by: Qt Cherry-pick Bot --- src/network/ssl/qsslsocket_schannel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/ssl/qsslsocket_schannel.cpp b/src/network/ssl/qsslsocket_schannel.cpp index 1c482f56d75..65642719c38 100644 --- a/src/network/ssl/qsslsocket_schannel.cpp +++ b/src/network/ssl/qsslsocket_schannel.cpp @@ -64,7 +64,7 @@ // Redstone 5/1809 has all the API available, but TLS 1.3 is not enabled until a later version of // Win 10, checked at runtime in supportsTls13() -#if NTDDI_VERSION >= NTDDI_WIN10_RS5 +#if defined(NTDDI_WIN10_RS5) && NTDDI_VERSION >= NTDDI_WIN10_RS5 #define SUPPORTS_TLS13 1 #endif