diff --git a/programs/regedit/regedit.c b/programs/regedit/regedit.c index 20a66bae244..f57f427c00c 100644 --- a/programs/regedit/regedit.c +++ b/programs/regedit/regedit.c @@ -262,7 +262,8 @@ BOOL ProcessCmdLine(LPSTR lpCmdLine) exit(1); } - PerformRegAction(action, argv, &i); + for (; i < argc; i++) + PerformRegAction(action, argv, &i); for (i = 0; i < argc; i++) HeapFree(GetProcessHeap(), 0, argv[i]);