From 5aa9ee84460badf99873c22f8c5cf527df0ec72c Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Fri, 31 May 2024 11:33:50 +0300 Subject: [PATCH] SDL_windowsmodes.c (WIN_GetDisplayNameVista): fix return after PR/9923 why haven't any of the build tests catch this.. --- src/video/windows/SDL_windowsmodes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/windows/SDL_windowsmodes.c b/src/video/windows/SDL_windowsmodes.c index 04af82f706..2aee71adc1 100644 --- a/src/video/windows/SDL_windowsmodes.c +++ b/src/video/windows/SDL_windowsmodes.c @@ -249,7 +249,7 @@ static char *WIN_GetDisplayNameVista(SDL_VideoData *videodata, const WCHAR *devi LONG rc; if (!videodata->GetDisplayConfigBufferSizes || !videodata->QueryDisplayConfig || !videodata->DisplayConfigGetDeviceInfo) { - return SDL_FALSE; + return NULL; } do {