commit | 6690884f84e5609d9dcd7ec5ad30fe86371100fb | [log] [tgz] |
---|---|---|
author | Paul Betts <paul@paulbetts.org> | Wed Sep 21 11:26:50 2011 -0700 |
committer | Paul Betts <paul@paulbetts.org> | Wed Sep 21 11:26:50 2011 -0700 |
tree | ac3093fb4811051c7be87b9d78575717395e35bd | |
parent | ac31a60bcd4dd5bf6542115a54c18718d64663ef [diff] |
Force the Unicode version of GetEnvVar
diff --git a/src/win32/posix.c b/src/win32/posix.c index 1c9430d..85a04bc 100644 --- a/src/win32/posix.c +++ b/src/win32/posix.c
@@ -385,7 +385,7 @@ 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);