]> git.ipfire.org Git - thirdparty/curl.git/commit
version_win32: use actual version instead of manifested version
authorJay Satiro <raysatiro@yahoo.com>
Mon, 4 Oct 2021 19:52:01 +0000 (15:52 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Thu, 7 Oct 2021 07:18:22 +0000 (03:18 -0400)
commit5044909ca251d3d190d8c5cc45243a04d244eaed
tree588ef740cc8098320ca65944f1a8b63ca4dac988
parenta031614a8470bc7ef269e98c1a6a38b0b822ff24
version_win32: use actual version instead of manifested version

- Use RtlVerifyVersionInfo instead of VerifyVersionInfo, when possible.

Later versions of Windows have normal version functions that compare and
return versions based on the way the application is manifested, instead
of the actual version of Windows the application is running on. We
prefer the actual version of Windows so we'll now call the Rtl variant
of version functions (RtlVerifyVersionInfo) which does a proper
comparison of the actual version.

Reported-by: Wyatt O'Day
Ref: https://github.com/curl/curl/pull/7727

Fixes https://github.com/curl/curl/issues/7742
Closes https://github.com/curl/curl/pull/7810
lib/system_win32.c
lib/version_win32.c
src/tool_doswin.c