From bbdcb4848a7f9329393c972d27b282ff77861a44 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 2 Aug 2010 20:45:27 +0200 Subject: Put quotes around the gvim.exe path for the "Open with" menu entry. --- src/dosinst.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dosinst.c') 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", -- cgit v1.2.1