summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWyatt O'Day <wyatt@wyday.com>2021-10-07 06:58:39 -0400
committerJay Satiro <raysatiro@yahoo.com>2021-12-02 03:39:14 -0500
commit7da636cad560f1643004fac42363dde76e705d9f (patch)
tree3cd4512092921322890d6c229a3e20dd39efb3a8 /src
parent3467e89bb97e6c87c77e82a046c59cb4b2d29a74 (diff)
downloadcurl-7da636cad560f1643004fac42363dde76e705d9f.tar.gz
version_win32: Check build number and platform id
Prior to this change the build number was not checked during version comparison, and the platform id was supposed to be checked but wasn't. Checking the build number is required for enabling "evergreen" Windows 10/11 features (like TLS 1.3). Ref: https://github.com/curl/curl/pull/7784 Closes https://github.com/curl/curl/pull/7824 Closes https://github.com/curl/curl/pull/7867
Diffstat (limited to 'src')
-rw-r--r--src/tool_doswin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool_doswin.c b/src/tool_doswin.c
index 1ad9cddc3..2390fab7f 100644
--- a/src/tool_doswin.c
+++ b/src/tool_doswin.c
@@ -768,7 +768,7 @@ CURLcode win32_init(void)
{
/* curlx_verify_windows_version must be called during init at least once
because it has its own initialization routine. */
- if(curlx_verify_windows_version(6, 0, PLATFORM_WINNT,
+ if(curlx_verify_windows_version(6, 0, 0, PLATFORM_WINNT,
VERSION_GREATER_THAN_EQUAL))
tool_isVistaOrGreater = true;
else