tool: fix Windows Unicode build

... by explicitly calling the ANSI versions of Windows API functions where
required.
This commit is contained in:
Marcel Raad 2017-04-04 23:02:16 +02:00
parent 2d4413fefd
commit d40f4e15e7
No known key found for this signature in database
GPG key ID: B4668817AE6D6CD4
2 changed files with 3 additions and 3 deletions

View file

@ -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, '\\');