diff options
author | Steve Hay <steve.m.hay@googlemail.com> | 2014-05-14 20:59:30 +0100 |
---|---|---|
committer | Steve Hay <steve.m.hay@googlemail.com> | 2014-05-14 20:59:30 +0100 |
commit | a6abe943fc6abe60b49c81ccb55b1e99f8993c8d (patch) | |
tree | 9b3e1a8b5ce646fe82facacf67d11f4525568786 /win32 | |
parent | 47e6d4dbb87eb14b29f00df5304f5d8bf44236ac (diff) | |
download | perl-a6abe943fc6abe60b49c81ccb55b1e99f8993c8d.tar.gz |
Fix commit 90674eaa88
Spotted by Daniel Dragan. We use GetEnvironmentStringsW() (deliberately so:
see commit 4f46e52b00), so we must use FreeEnvironmentStringsW() to match.
Diffstat (limited to 'win32')
-rw-r--r-- | win32/win32.c | 2 |
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); } |