SDL: Fixes for testdialog.c

From 0caa2828d55379793a19853ac28544efd5fffe06 Mon Sep 17 00:00:00 2001
From: Semphris <[EMAIL REDACTED]>
Date: Tue, 9 Apr 2024 16:34:12 -0400
Subject: [PATCH] Fixes for testdialog.c

---
 test/testdialog.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/testdialog.c b/test/testdialog.c
index 26be7b6406068..218db653aa8a6 100644
--- a/test/testdialog.c
+++ b/test/testdialog.c
@@ -70,8 +70,7 @@ int main(int argc, char *argv[]) {
         int consumed;
 
         consumed = SDLTest_CommonArg(state, i);
-        if (!consumed) {
-        }
+
         if (consumed <= 0) {
             static const char *options[] = { NULL };
             SDLTest_CommonLogUsage(state, argv[0], options);
@@ -87,6 +86,7 @@ int main(int argc, char *argv[]) {
     }
     if (SDL_CreateWindowAndRenderer(640, 480, 0, &w, &r) < 0) {
         SDL_Log("Failed to create window and/or renderer: %s\n", SDL_GetError());
+        SDL_Quit();
         return 1;
     }