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_parsecfg.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_parsecfg.c')
-rw-r--r-- | src/tool_parsecfg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool_parsecfg.c b/src/tool_parsecfg.c index 7cf11d8a4..14efc5c3a 100644 --- a/src/tool_parsecfg.c +++ b/src/tool_parsecfg.c @@ -79,7 +79,7 @@ int parseconfig(const char *filename, struct GlobalConfig *global) * already declared via inclusions done in setup header file. * We assume that we are using the ASCII version here. */ - int n = GetModuleFileName(0, filebuffer, sizeof(filebuffer)); + int n = GetModuleFileNameA(0, filebuffer, sizeof(filebuffer)); if(n > 0 && n < (int)sizeof(filebuffer)) { /* We got a valid filename - get the directory part */ char *lastdirchar = strrchr(filebuffer, '\\'); |