Эх сурвалжийг харах

Merge pull request #643 from yukawa/fix_win_unicode_build

Fix build failure on Windows when Unicode build is enabled.
Paul Yang 10 жил өмнө
parent
commit
bfbf35da9e

+ 1 - 1
src/google/protobuf/compiler/command_line_interface.cc

@@ -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;