SDL: Fixed warning C6031: Return value ignored: 'GetKeyboardState'.

From c7d81d936aabbdca4009d8a971f10240a04527c6 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 4 Dec 2023 20:28:42 -0800
Subject: [PATCH] Fixed warning C6031: Return value ignored:
 'GetKeyboardState'.

---
 src/video/windows/SDL_windowskeyboard.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/video/windows/SDL_windowskeyboard.c b/src/video/windows/SDL_windowskeyboard.c
index c637710c3993..f84c1bdc954c 100644
--- a/src/video/windows/SDL_windowskeyboard.c
+++ b/src/video/windows/SDL_windowskeyboard.c
@@ -198,7 +198,9 @@ void WIN_ResetDeadKeys()
     WCHAR buffer[16];
     int keycode, scancode, result, i;
 
-    GetKeyboardState(keyboardState);
+    if (!GetKeyboardState(keyboardState)) {
+        return;
+    }
 
     keycode = VK_SPACE;
     scancode = MapVirtualKey(keycode, MAPVK_VK_TO_VSC);