mirror of
https://github.com/Neo-Desktop/WindowsXPKg
synced 2024-11-18 03:41:00 +02:00
ensure arg for -p
This commit is contained in:
parent
72c42f66c9
commit
6989ae6c94
@ -183,6 +183,10 @@ int CLI::parseCommandLine(int argc, char* argv[], Options* options) {
|
|||||||
}
|
}
|
||||||
i++;
|
i++;
|
||||||
} else if (arg == "-p" || arg == "--productid") {
|
} else if (arg == "-p" || arg == "--productid") {
|
||||||
|
if (i == argc -1) {
|
||||||
|
options->error = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
options->productid = argv[i+1];
|
options->productid = argv[i+1];
|
||||||
i++;
|
i++;
|
||||||
} else if (arg == "-V" || arg == "--validate") {
|
} else if (arg == "-V" || arg == "--validate") {
|
||||||
|
Loading…
Reference in New Issue
Block a user