WIN_SetWindowProgressState(): Unsupported parameter error message

This commit is contained in:
Petar Popovic
2025-03-23 17:57:18 +01:00
committed by Sam Lantinga
parent c217663fba
commit 035d9179a5

View File

@@ -2276,7 +2276,7 @@ bool WIN_SetWindowProgressState(SDL_VideoDevice *_this, SDL_Window *window, SDL_
tbpFlags = TBPF_ERROR;
break;
default:
return SDL_Unsupported();
return SDL_SetError("Parameter 'state' is not supported");
}
HRESULT ret = taskbar_list->lpVtbl->SetProgressState(taskbar_list, window->internal->hwnd, tbpFlags);