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-861f7616d084master
parent
fa0b7162fa
commit
983e48834c
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue