From 9638eef84804c04c2c4a7d404a23b5a5e73b0d17 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 15 Sep 2026 17:06:53 -0700 Subject: [PATCH] Fixed build (cherry picked from commit 53761230c9a58d863355c5e0aeda7ff4c42e4f6f) --- src/core/windows/SDL_windows.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/windows/SDL_windows.c b/src/core/windows/SDL_windows.c index 222a4c6bcd..1e9e6bba97 100644 --- a/src/core/windows/SDL_windows.c +++ b/src/core/windows/SDL_windows.c @@ -773,8 +773,8 @@ bool WIN_HasBrokenEZFRD64DLL(void) static bool checked = false; static bool has_broken_EZFRD64_DLL = false; -#ifdef _WIN64 if (!checked) { +#ifdef _WIN64 if (SDL_GetHintBoolean("SDL_CHECK_BROKEN_EZFRD64", true)) { // The 64-bit version of EZFRD64.DLL crashes after being loaded, // which happens implicitly when querying the device capabilities, @@ -793,9 +793,9 @@ bool WIN_HasBrokenEZFRD64DLL(void) SDL_free(files); } } +#endif checked = true; } -#endif return has_broken_EZFRD64_DLL; }