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:
commit
bfbf35da9e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue