mirror of
https://github.com/curl/curl.git
synced 2026-08-26 13:23:43 +03:00
tool: fix Windows Unicode build
... by explicitly calling the ANSI versions of Windows API functions where required.
This commit is contained in:
parent
2d4413fefd
commit
d40f4e15e7
2 changed files with 3 additions and 3 deletions
|
|
@ -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, '\\');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue