SDL: Revert "Fixed build" (3899c)

From 3899cb16969d5c700a94c815b123f0e3b4bbe30a Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 8 Jul 2024 14:46:15 -0700
Subject: [PATCH] Revert "Fixed build"

This reverts commit 026dfc63053984ef02708a5f5281b2d128fc8a05.

Fixed build again!
---
 src/render/direct3d/SDL_render_d3d.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

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