Use GetModuleFileNameA instead of GetModuleFileName to make sure we can build properly, even on Unicode builds

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4633 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2008-04-15 18:25:20 +00:00
parent fa0b7162fa
commit 983e48834c
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ static void initProgramPath(const char* programCommand)
size_t bufsize = PATH_MAX; size_t bufsize = PATH_MAX;
#if defined(WZ_OS_WIN) #if defined(WZ_OS_WIN)
while (GetModuleFileName(NULL, &buf[0], buf.size()) == buf.size()) while (GetModuleFileNameA(NULL, &buf[0], buf.size()) == buf.size())
{ {
buf.resize(buf.size() * 2); buf.resize(buf.size() * 2);
} }