comparison 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
comparison
equal deleted inserted replaced
2469:336d6df580e7 2470:481f808ab5e1
1461 const char *exe_path) 1461 const char *exe_path)
1462 { 1462 {
1463 char exe_cmd[BUFSIZE]; 1463 char exe_cmd[BUFSIZE];
1464 LONG lRet; 1464 LONG lRet;
1465 1465
1466 sprintf(exe_cmd, "%s \"%%1\"", exe_path); 1466 sprintf(exe_cmd, "\"%s\" \"%%1\"", exe_path);
1467 lRet = reg_create_key_and_value( 1467 lRet = reg_create_key_and_value(
1468 hRootKey, 1468 hRootKey,
1469 "Applications\\gvim.exe\\shell\\edit\\command", 1469 "Applications\\gvim.exe\\shell\\edit\\command",
1470 NULL, 1470 NULL,
1471 exe_cmd); 1471 exe_cmd);