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

Alexandre Julliard julliard at wine.codeweavers.com
Fri Jul 28 07:15:07 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 2b8abca493ca61a30a9d3cd9a66d32f2302046ac
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=2b8abca493ca61a30a9d3cd9a66d32f2302046ac

Author: Mike McCormack <mike at codeweavers.com>
Date:   Thu Jul 27 23:39:49 2006 +0900

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

---

 programs/msiexec/msiexec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/programs/msiexec/msiexec.c b/programs/msiexec/msiexec.c
index 0d273f2..d00fde9 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;




More information about the wine-cvs mailing list