diff options
author | Marcel Raad <raad@teamviewer.com> | 2017-04-04 23:02:16 +0200 |
---|---|---|
committer | Marcel Raad <raad@teamviewer.com> | 2017-04-04 23:04:29 +0200 |
commit | d40f4e15e73f906cd06919da84e535f52637c1a1 (patch) | |
tree | 169ab671f581843b7afd7f036eb52cc81f7fc198 /src/tool_homedir.c | |
parent | 2d4413fefd20219ebf841e6213f4f2cacb31bf1d (diff) | |
download | curl-d40f4e15e73f906cd06919da84e535f52637c1a1.tar.gz |
tool: fix Windows Unicode build
... by explicitly calling the ANSI versions of Windows API functions where
required.
Diffstat (limited to 'src/tool_homedir.c')
-rw-r--r-- | src/tool_homedir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tool_homedir.c b/src/tool_homedir.c index 26b6c535c..483553d59 100644 --- a/src/tool_homedir.c +++ b/src/tool_homedir.c @@ -39,14 +39,14 @@ static char *GetEnv(const char *variable, char do_expand) /* Don't use getenv(); it doesn't find variable added after program was * started. Don't accept truncated results (i.e. rc >= sizeof(buf1)). */ - rc = GetEnvironmentVariable(variable, buf1, sizeof(buf1)); + rc = GetEnvironmentVariableA(variable, buf1, sizeof(buf1)); if(rc > 0 && rc < sizeof(buf1)) { env = buf1; variable = buf1; } if(do_expand && strchr(variable, '%')) { /* buf2 == variable if not expanded */ - rc = ExpandEnvironmentStrings(variable, buf2, sizeof(buf2)); + rc = ExpandEnvironmentStringsA(variable, buf2, sizeof(buf2)); if(rc > 0 && rc < sizeof(buf2) && !strchr(buf2, '%')) /* no vars still unexpanded */ env = buf2; |