Win32: glfwSetWindowTaskbarProgress now emits GLFW_FEATURE_UNAVAILABLE on Windows Vista and older

This commit is contained in:
GamesTrap 2023-02-05 03:03:54 +01:00
parent f590075121
commit 74dac5cfb4
No known key found for this signature in database
GPG Key ID: 31DFD452434ECDA3

View File

@ -1601,6 +1601,12 @@ void _glfwSetWindowTaskbarProgressWin32(_GLFWwindow* window, const int progressS
HRESULT res = S_OK; HRESULT res = S_OK;
int32_t winProgressState = 0; 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) if(!window->win32.TaskbarList)
return; return;