From 8c2c8882637652ce7510e9f988fdfa3c14561428 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20K=C3=B6fferlein?= Date: Sun, 9 Sep 2018 16:47:28 +0200 Subject: [PATCH] MSVC build issue fixed in pya.cc --- src/pya/pya/pya.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pya/pya/pya.cc b/src/pya/pya/pya.cc index a89c3f27b..cd819e7c6 100644 --- a/src/pya/pya/pya.cc +++ b/src/pya/pya/pya.cc @@ -204,7 +204,7 @@ PythonInterpreter::PythonInterpreter () wchar_t buffer[MAX_PATH]; int len; - if ((len = GetModuleFileName (NULL, buffer, MAX_PATH)) > 0) { + if ((len = GetModuleFileNameW (NULL, buffer, MAX_PATH)) > 0) { std::string inst_dir = tl::absolute_path (tl::to_string (std::wstring (buffer, len))); std::string path_file = tl::combine_path (inst_dir, ".python-paths.txt");