aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/w32fns.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/w32fns.c b/src/w32fns.c
index e9fafc687cd..e02eff1b95d 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -8105,9 +8105,12 @@ an integer representing a ShowWindow flag:
8105 8105
8106 CHECK_STRING (document); 8106 CHECK_STRING (document);
8107 8107
8108 /* Encode filename and current directory. */ 8108 /* Encode filename, current directory and parameters. */
8109 current_dir = ENCODE_FILE (current_buffer->directory); 8109 current_dir = ENCODE_FILE (current_buffer->directory);
8110 document = ENCODE_FILE (document); 8110 document = ENCODE_FILE (document);
8111 if (STRINGP (parameters))
8112 parameters = ENCODE_SYSTEM (parameters);
8113
8111 if ((int) ShellExecute (NULL, 8114 if ((int) ShellExecute (NULL,
8112 (STRINGP (operation) ? 8115 (STRINGP (operation) ?
8113 SDATA (operation) : NULL), 8116 SDATA (operation) : NULL),