Mike McCormack : msi: Don't crash if there's no script present when we try execute one.
Module: wine Branch: refs/heads/master Commit: aa81e4fa6860f39c6f735596785ed07783ae6920 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=aa81e4fa6860f39c6f735596... Author: Mike McCormack <mike(a)codeweavers.com> Date: Tue Jan 10 12:09:19 2006 +0100 msi: Don't crash if there's no script present when we try execute one. --- dlls/msi/action.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/dlls/msi/action.c b/dlls/msi/action.c index 9ccb716..6f4ce41 100644 --- a/dlls/msi/action.c +++ b/dlls/msi/action.c @@ -1417,6 +1417,12 @@ static UINT execute_script(MSIPACKAGE *p 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;
participants (1)
-
Alexandre Julliard