diff options
author | Tomasz Moń <desowin@gmail.com> | 2019-09-15 12:48:06 +0200 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2019-09-15 13:37:13 +0000 |
commit | 1f2d36aa0bbb0b089d8d61afe53acc630581f15f (patch) | |
tree | 46286084fda55ed24cfb0643c7729b6be4ef7120 /wsutil | |
parent | 88bc8ef73a5abadf4ebbcbb3a49630d6743d3002 (diff) |
wsutil: Respect working directory on Windows
Pass working directory parameter to win32_create_process() in
ws_pipe_spawn_sync().
Change-Id: I0abbc4fbf733138b20c2a34845b147530417c91e
Reviewed-on: https://code.wireshark.org/review/34533
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'wsutil')
-rw-r--r-- | wsutil/ws_pipe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wsutil/ws_pipe.c b/wsutil/ws_pipe.c index d7d622cf9b..f8455a8d2c 100644 --- a/wsutil/ws_pipe.c +++ b/wsutil/ws_pipe.c @@ -314,7 +314,7 @@ gboolean ws_pipe_spawn_sync(const gchar *working_directory, const gchar *command info.dwFlags = STARTF_USESTDHANDLES | STARTF_USESHOWWINDOW; info.wShowWindow = SW_HIDE; - if (win32_create_process(NULL, command_line, NULL, NULL, TRUE, CREATE_NEW_CONSOLE, NULL, NULL, &info, &processInfo)) + if (win32_create_process(NULL, command_line, NULL, NULL, TRUE, CREATE_NEW_CONSOLE, NULL, working_directory, &info, &processInfo)) { gchar* stdout_buffer = (gchar*)g_malloc(BUFFER_SIZE); gchar* stderr_buffer = (gchar*)g_malloc(BUFFER_SIZE); |