- Fix compilation error (which presumably comes from a change in header files

associated with python2).
This commit is contained in:
Stephen Montgomery-Smith
2017-06-18 03:17:52 +00:00
parent ff057dbb67
commit 8d6e6ec28c

View File

@@ -0,0 +1,11 @@
--- Common/Message.cpp.orig 2017-06-17 23:49:49 UTC
+++ Common/Message.cpp
@@ -124,7 +124,7 @@ void Message::Initialize(int argc, char
std::vector<wchar_t*> wargv(argc ? argc : 1);
for(int i = 0; i < argc; i++)
wargv[i] = Py_DecodeLocale(argv[i], NULL);
- Py_SetProgramName(wargv[0], NULL);
+ Py_SetProgramName(wargv[0]);
Py_InitializeEx(0);
PySys_SetArgv(argc, &wargv[0]);
#endif