From 74dac5cfb45c6a07688d22fd573bac6524aef3ec Mon Sep 17 00:00:00 2001 From: GamesTrap Date: Sun, 5 Feb 2023 03:03:54 +0100 Subject: [PATCH] Win32: glfwSetWindowTaskbarProgress now emits GLFW_FEATURE_UNAVAILABLE on Windows Vista and older --- src/win32_window.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/win32_window.c b/src/win32_window.c index 28f60b52..0d393f4b 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -1601,6 +1601,12 @@ void _glfwSetWindowTaskbarProgressWin32(_GLFWwindow* window, const int progressS HRESULT res = S_OK; int32_t winProgressState = 0; + if(!IsWindows7OrGreater()) + { + _glfwInputErrorWin32(GLFW_FEATURE_UNAVAILABLE, "Win32: Taskbar progress is only supported on Windows 7 or newer"); + return; + } + if(!window->win32.TaskbarList) return;