SDL: sdlprocdump: skip parsed arguments

From f95027e3d7a692b9324cfa53f371f8cfdb2575e3 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Thu, 15 Aug 2024 12:17:52 +0200
Subject: [PATCH] sdlprocdump: skip parsed arguments

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

diff --git a/test/win32/sdlprocdump.c b/test/win32/sdlprocdump.c
index df81a0debdcd7..67c5364cce49e 100644
--- a/test/win32/sdlprocdump.c
+++ b/test/win32/sdlprocdump.c
@@ -487,7 +487,7 @@ int main(int argc, char *argv[]) {
     DWORD creation_flags;
     BOOL log_debug_stream = FALSE;
 
-    for (i = 1; i < argc; i++) {
+    for (i = 1; i < argc; i++, cmd_i = i + 1) {
         if (strcmp(argv[i], "--") == 0) {
             cmd_i = i + 1;
             break;
@@ -533,7 +533,7 @@ int main(int argc, char *argv[]) {
         creation_flags |= DEBUG_PROCESS | DEBUG_ONLY_THIS_PROCESS;
     }
     success = CreateProcessA(
-        argv[cmd_i],                /* LPCSTR                lpApplicationName, */
+        argv[cmd_i],            /* LPCSTR                lpApplicationName, */
         command_line,           /* LPSTR                 lpCommandLine, */
         NULL,                   /* LPSECURITY_ATTRIBUTES lpProcessAttributes, */
         NULL,                   /* LPSECURITY_ATTRIBUTES lpThreadAttributes, */