diff src/dosinst.c @ 2470:481f808ab5e1 vim73

Put quotes around the gvim.exe path for the "Open with" menu entry.
author Bram Moolenaar <bram@vim.org>
date Mon, 02 Aug 2010 20:45:27 +0200
parents 943280505f72
children 6768ebd0bc04
line wrap: on
line diff
--- a/src/dosinst.c
+++ b/src/dosinst.c
@@ -1463,7 +1463,7 @@ register_openwith(
     char	exe_cmd[BUFSIZE];
     LONG	lRet;
 
-    sprintf(exe_cmd, "%s \"%%1\"", exe_path);
+    sprintf(exe_cmd, "\"%s\" \"%%1\"", exe_path);
     lRet = reg_create_key_and_value(
 	    hRootKey,
 	    "Applications\\gvim.exe\\shell\\edit\\command",