msi: Don't crash if there's no script present when we try execute one.
This commit is contained in:
parent
1acf032a99
commit
aa81e4fa68
|
@ -1417,6 +1417,12 @@ static UINT execute_script(MSIPACKAGE *package, UINT script )
|
|||
|
||||
TRACE("Executing Script %i\n",script);
|
||||
|
||||
if (!package->script)
|
||||
{
|
||||
ERR("no script!\n");
|
||||
return ERROR_FUNCTION_FAILED;
|
||||
}
|
||||
|
||||
for (i = 0; i < package->script->ActionCount[script]; i++)
|
||||
{
|
||||
LPWSTR action;
|
||||
|
|
Loading…
Reference in New Issue