Commit aa81e4fa authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

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

parent 1acf032a
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment