fixed bad input test
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4370 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
60026493e7
commit
373eac3da8
1 changed files with 3 additions and 1 deletions
|
@ -154,14 +154,16 @@ params:
|
||||||
if (my_strstr(pExec, "/TIMEOUT=") == pExec) {
|
if (my_strstr(pExec, "/TIMEOUT=") == pExec) {
|
||||||
char *szTimeout = pExec + 9;
|
char *szTimeout = pExec + 9;
|
||||||
g_to = my_atoi(szTimeout);
|
g_to = my_atoi(szTimeout);
|
||||||
|
*pExec = 0;
|
||||||
goto params;
|
goto params;
|
||||||
}
|
}
|
||||||
if (!lstrcmpi(pExec, "/OEM")) {
|
if (!lstrcmpi(pExec, "/OEM")) {
|
||||||
bOEM = TRUE;
|
bOEM = TRUE;
|
||||||
|
*pExec = 0;
|
||||||
goto params;
|
goto params;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!g_exec[0])
|
if (!pExec[0])
|
||||||
{
|
{
|
||||||
lstrcpy(szRet, "error");
|
lstrcpy(szRet, "error");
|
||||||
goto done;
|
goto done;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue