summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2019-03-27 12:31:07 +1000
committerteor <teor@torproject.org>2019-03-27 12:31:07 +1000
commit6d188fb4cc026668502c0fb28e9bffaa098f84dc (patch)
tree8afea61da199d0eef853cd772a04d98add4480f7 /src
parentca29cb397b619252a3d07d6f371313f10d8fb23f (diff)
parent4be522b2e6eb634b141d7876234acf40a931cab6 (diff)
downloadtor-6d188fb4cc026668502c0fb28e9bffaa098f84dc.tar.gz
tor-6d188fb4cc026668502c0fb28e9bffaa098f84dc.zip
Merge remote-tracking branch 'tor-github/pr/835' into maint-0.4.0
Diffstat (limited to 'src')
-rw-r--r--src/lib/process/process_win32.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/lib/process/process_win32.c b/src/lib/process/process_win32.c
index 21d0b23476..ddbe76bfd9 100644
--- a/src/lib/process/process_win32.c
+++ b/src/lib/process/process_win32.c
@@ -152,11 +152,6 @@ process_win32_exec(process_t *process)
HANDLE stdin_pipe_read = NULL;
HANDLE stdin_pipe_write = NULL;
BOOL ret = FALSE;
- const char *filename = process_get_command(process);
-
- /* Not much we can do if we haven't been told what to start. */
- if (BUG(filename == NULL))
- return PROCESS_STATUS_ERROR;
/* Setup our security attributes. */
SECURITY_ATTRIBUTES security_attributes;
@@ -211,7 +206,7 @@ process_win32_exec(process_t *process)
char *joined_argv = tor_join_win_cmdline((const char **)argv);
/* Create the child process */
- ret = CreateProcessA(filename,
+ ret = CreateProcessA(NULL,
joined_argv,
NULL,
NULL,