summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);