From 2b8abca493ca61a30a9d3cd9a66d32f2302046ac Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Thu, 27 Jul 2006 23:39:49 +0900 Subject: [PATCH] msiexec: Don't crash if there's no args. --- programs/msiexec/msiexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/msiexec/msiexec.c b/programs/msiexec/msiexec.c index 0d273f23816..d00fde9b6fe 100644 --- a/programs/msiexec/msiexec.c +++ b/programs/msiexec/msiexec.c @@ -401,7 +401,7 @@ int main(int argc, char **argv) * We do that before starting to process the real commandline, * then overwrite the commandline again. */ - if(msi_option_equal(argvW[1], "@")) + if(argc>1 && msi_option_equal(argvW[1], "@")) { if(!process_args_from_reg( argvW[2], &argc, &argvW )) return 1;