summaryrefslogtreecommitdiff
path: root/src/dosinst.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-08-02 20:45:27 +0200
committerBram Moolenaar <Bram@vim.org>2010-08-02 20:45:27 +0200
commitbbdcb4848a7f9329393c972d27b282ff77861a44 (patch)
treecf82c6da05c65fccec1946772dbf2f5300f608e1 /src/dosinst.c
parent3f97ebf7301efaa1d523417f2ef30f1b9c7576c3 (diff)
downloadvim-git-bbdcb4848a7f9329393c972d27b282ff77861a44.tar.gz
Put quotes around the gvim.exe path for the "Open with" menu entry.
Diffstat (limited to 'src/dosinst.c')
-rw-r--r--src/dosinst.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dosinst.c b/src/dosinst.c
index 979d6fe87..84d171baf 100644
--- 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",