Commit 2b8abca4 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

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

parent 43f7f3ec
......@@ -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;
......
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