Merge pull request #643 from yukawa/fix_win_unicode_build

Fix build failure on Windows when Unicode build is enabled.
This commit is contained in:
Paul Yang 2015-07-31 11:36:51 -07:00
commit bfbf35da9e

View file

@ -189,7 +189,7 @@ bool TryCreateParentDirectory(const string& prefix, const string& filename) {
bool GetProtocAbsolutePath(string* path) {
#ifdef _WIN32
char buffer[MAX_PATH];
int len = GetModuleFileName(NULL, buffer, MAX_PATH);
int len = GetModuleFileNameA(NULL, buffer, MAX_PATH);
#elif __APPLE__
char buffer[PATH_MAX];
int len = 0;