From 7bff9176d582c9c59a341d1a6fbe8ddb4f04e575 Mon Sep 17 00:00:00 2001 From: SupSuper Date: Thu, 22 Nov 2018 12:26:32 +0000 Subject: WIN32: Fix incorrect Windows version check There's no point in testing for Windows 10 since the comparison is already "greater than or equals", and it identifies itself as 6.2 for backwards compatibility. Likely it was failing before because the return type was wrong. Version checks are unreliable anyways, should use feature checks, but "if it ain't broke don't fix it". --- backends/taskbar/win32/win32-taskbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backends/taskbar/win32') diff --git a/backends/taskbar/win32/win32-taskbar.cpp b/backends/taskbar/win32/win32-taskbar.cpp index 1537859243..f6706de72d 100644 --- a/backends/taskbar/win32/win32-taskbar.cpp +++ b/backends/taskbar/win32/win32-taskbar.cpp @@ -77,7 +77,7 @@ const PROPERTYKEY PKEY_Title = { /* fmtid = */ { 0xF29F85E0, 0x4FF9, 0x1068, { 0 Win32TaskbarManager::Win32TaskbarManager(SdlWindow_Win32 *window) : _window(window), _taskbar(NULL), _count(0), _icon(NULL) { // Do nothing if not running on Windows 7 or later - if (!Win32::confirmWindowsVersion(10, 0) && !Win32::confirmWindowsVersion(6, 1)) + if (!Win32::confirmWindowsVersion(6, 1)) return; CoInitialize(NULL); -- cgit v1.2.3