summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-06-07 11:59:32 -0400
committerNick Mathewson <nickm@torproject.org>2012-06-07 11:59:32 -0400
commitbf9252587b4d7d970f02631b308451fb05ec5560 (patch)
tree080b02d0945369477200daf70e8b73849fc16715 /src/common
parent1e5683b167a612bf76d4ae9ba508027e0d473e52 (diff)
downloadtor-bf9252587b4d7d970f02631b308451fb05ec5560.tar.gz
tor-bf9252587b4d7d970f02631b308451fb05ec5560.zip
Fix mingw build with -DUNICODE -D_UNICODE
This is a very blunt fix, and mostly just turns some func() calls into FuncA() to make things build again. Fixes bug 6097.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/util.c b/src/common/util.c
index dc8f8b7995..28ecff3983 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -3381,7 +3381,7 @@ tor_spawn_background(const char *const filename, const char **argv,
process_handle_t *process_handle;
int status;
- STARTUPINFO siStartInfo;
+ STARTUPINFOA siStartInfo;
BOOL retval = FALSE;
SECURITY_ATTRIBUTES saAttr;
@@ -3442,7 +3442,7 @@ tor_spawn_background(const char *const filename, const char **argv,
/* Create the child process */
- retval = CreateProcess(filename, // module name
+ retval = CreateProcessA(filename, // module name
joined_argv, // command line
/* TODO: should we set explicit security attributes? (#2046, comment 5) */
NULL, // process security attributes