SDL: Fixed build (80235)

From 802351be2539b23c8e19992dec124a807e356dd1 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 8 Jul 2024 11:39:08 -0700
Subject: [PATCH] Fixed build

(cherry picked from commit 026dfc63053984ef02708a5f5281b2d128fc8a05)
---
 src/render/direct3d/SDL_render_d3d.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/render/direct3d/SDL_render_d3d.c b/src/render/direct3d/SDL_render_d3d.c
index 06a584f6240e7..2a54c6147543d 100644
--- a/src/render/direct3d/SDL_render_d3d.c
+++ b/src/render/direct3d/SDL_render_d3d.c
@@ -1613,7 +1613,8 @@ SDL_Renderer *D3D_CreateRenderer(SDL_Window *window, Uint32 flags)
     if (!SDL_GetWindowWMInfo(window, &windowinfo) ||
         windowinfo.subsystem != SDL_SYSWM_WINDOWS) {
         SDL_free(data);
-        return SDL_SetError("Couldn't get window handle");
+        SDL_SetError("Couldn't get window handle");
+        return NULL;
     }
 
     window_flags = SDL_GetWindowFlags(window);