mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-11-10 04:25:14 +00:00
sdlprocdump: skip parsed arguments
This commit is contained in:
@@ -487,7 +487,7 @@ int main(int argc, char *argv[]) {
|
|||||||
DWORD creation_flags;
|
DWORD creation_flags;
|
||||||
BOOL log_debug_stream = FALSE;
|
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) {
|
if (strcmp(argv[i], "--") == 0) {
|
||||||
cmd_i = i + 1;
|
cmd_i = i + 1;
|
||||||
break;
|
break;
|
||||||
@@ -533,7 +533,7 @@ int main(int argc, char *argv[]) {
|
|||||||
creation_flags |= DEBUG_PROCESS | DEBUG_ONLY_THIS_PROCESS;
|
creation_flags |= DEBUG_PROCESS | DEBUG_ONLY_THIS_PROCESS;
|
||||||
}
|
}
|
||||||
success = CreateProcessA(
|
success = CreateProcessA(
|
||||||
argv[cmd_i], /* LPCSTR lpApplicationName, */
|
argv[cmd_i], /* LPCSTR lpApplicationName, */
|
||||||
command_line, /* LPSTR lpCommandLine, */
|
command_line, /* LPSTR lpCommandLine, */
|
||||||
NULL, /* LPSECURITY_ATTRIBUTES lpProcessAttributes, */
|
NULL, /* LPSECURITY_ATTRIBUTES lpProcessAttributes, */
|
||||||
NULL, /* LPSECURITY_ATTRIBUTES lpThreadAttributes, */
|
NULL, /* LPSECURITY_ATTRIBUTES lpThreadAttributes, */
|
||||||
|
|||||||
Reference in New Issue
Block a user