summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Betts <paul@paulbetts.org>2011-09-21 11:26:50 -0700
committerPaul Betts <paul@paulbetts.org>2011-09-21 11:26:50 -0700
commit6690884f84e5609d9dcd7ec5ad30fe86371100fb (patch)
treeac3093fb4811051c7be87b9d78575717395e35bd
parentac31a60bcd4dd5bf6542115a54c18718d64663ef (diff)
downloadlibgit2-getenv-win32.tar.gz
Force the Unicode version of GetEnvVargetenv-win32
-rw-r--r--src/win32/posix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/win32/posix.c b/src/win32/posix.c
index 1c9430d0f..85a04bc0f 100644
--- a/src/win32/posix.c
+++ b/src/win32/posix.c
@@ -385,7 +385,7 @@ char* p_getenv(const char* name)
len++; /* Null Terminator */
buf = malloc(sizeof(wchar_t) * len);
- GetEnvironmentVariable(name_w, buf, len);
+ GetEnvironmentVariableW(name_w, buf, len);
ret = conv_utf16_to_utf8(buf);