summaryrefslogtreecommitdiff
path: root/src/test/test.c
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/test/test.c
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/test/test.c')
-rw-r--r--src/test/test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test.c b/src/test/test.c
index 4f19f36eab..89b4ced87c 100644
--- a/src/test/test.c
+++ b/src/test/test.c
@@ -91,7 +91,7 @@ setup_directory(void)
char buf[MAX_PATH];
const char *tmp = buf;
/* If this fails, we're probably screwed anyway */
- if (!GetTempPath(sizeof(buf),buf))
+ if (!GetTempPathA(sizeof(buf),buf))
tmp = "c:\\windows\\temp";
tor_snprintf(temp_dir, sizeof(temp_dir),
"%s\\tor_test_%d", tmp, (int)getpid());