msiexec: Don't crash if there's no args.

This commit is contained in:
Mike McCormack 2006-07-27 23:39:49 +09:00 committed by Alexandre Julliard
parent 43f7f3ec3f
commit 2b8abca493
1 changed files with 1 additions and 1 deletions

View File

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