Show More
@@ -23,7 +23,6 b' int strcpy_s(char *d, size_t n, const ch' | |||
|
23 | 23 | } |
|
24 | 24 | #endif |
|
25 | 25 | |
|
26 | ||
|
27 | 26 | static char pyscript[MAX_PATH + 10]; |
|
28 | 27 | static char pyhome[MAX_PATH + 10]; |
|
29 | 28 | static char envpyhome[MAX_PATH + 10]; |
@@ -43,8 +42,7 b' int main(int argc, char *argv[])' | |||
|
43 | 42 |
void |
|
44 | 43 |
int |
|
45 | 44 | |
|
46 | if (GetModuleFileName(NULL, pyscript, sizeof(pyscript)) == 0) | |
|
47 | { | |
|
45 | if (GetModuleFileName(NULL, pyscript, sizeof(pyscript)) == 0) { | |
|
48 | 46 | err = "GetModuleFileName failed"; |
|
49 | 47 | goto bail; |
|
50 | 48 | } |
@@ -87,10 +85,12 b' int main(int argc, char *argv[])' | |||
|
87 | 85 | strcat_s(pydllfile, sizeof(pydllfile), "\\" HGPYTHONLIB ".dll"); |
|
88 | 86 | pydll = LoadLibrary(pydllfile); |
|
89 | 87 | if (pydll == NULL) { |
|
90 |
err = "failed to load private Python DLL " HGPYTHONLIB |
|
|
88 | err = "failed to load private Python DLL " HGPYTHONLIB | |
|
89 | ".dll"; | |
|
91 | 90 | goto bail; |
|
92 | 91 | } |
|
93 | Py_SetPythonHome = (void*)GetProcAddress(pydll, "Py_SetPythonHome"); | |
|
92 | Py_SetPythonHome = | |
|
93 | (void *)GetProcAddress(pydll, "Py_SetPythonHome"); | |
|
94 | 94 | if (Py_SetPythonHome == NULL) { |
|
95 | 95 | err = "failed to get Py_SetPythonHome"; |
|
96 | 96 | goto bail; |
General Comments 0
You need to be logged in to leave comments.
Login now