summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--win32/win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 41d10dd841..5a112ef6b1 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -1770,7 +1770,7 @@ win32_getenvironmentstrings(void)
WideCharToMultiByte(CP_ACP, WC_NO_BEST_FIT_CHARS, lpWStr, wenvstrings_len, lpStr,
aenvstrings_len, NULL, NULL);
- FreeEnvironmentStrings(lpWStr);
+ FreeEnvironmentStringsW(lpWStr);
return(lpStr);
}