msi: Don't crash if there's no script present when we try execute one.

This commit is contained in:
Mike McCormack 2006-01-10 12:09:19 +01:00 committed by Alexandre Julliard
parent 1acf032a99
commit aa81e4fa68
1 changed files with 6 additions and 0 deletions

View File

@ -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;