1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Merge Windows Pageant -c fix from 'pre-0.77'.

This commit is contained in:
Simon Tatham 2022-05-04 20:00:42 +01:00
commit a5717f5ac2

View File

@ -1508,8 +1508,8 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
* If we see `-c', then the rest of the command line
* should be treated as a command to be spawned.
*/
if (amo.index < amo.argc-1)
command = argstart[amo.index + 1];
if (amo.index < amo.argc)
command = argstart[amo.index];
else
command = "";
break;