Skip to content

Commit

Permalink
Fix commit 2358a19
Browse files Browse the repository at this point in the history
Spotted by Daniel Dragan. We use GetEnvironmentStringsW() (deliberately so:
see commit 4f46e52), so we must use FreeEnvironmentStringsW() to match.

(cherry picked from commit a6abe94)
  • Loading branch information
steve-m-hay committed May 14, 2014
1 parent 2358a19 commit 72a2b48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion win32/win32.c
Expand Up @@ -1774,7 +1774,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);
}
Expand Down

0 comments on commit 72a2b48

Please sign in to comment.