Show More
@@ -25,7 +25,7 b' int strcpy_s(char *d, size_t n, const ch' | |||
|
25 | 25 | |
|
26 | 26 | #define _tcscpy_s strcpy_s |
|
27 | 27 | #define _tcscat_s strcat_s |
|
28 | #define _countof(array) (sizeof(array)/sizeof(array[0])) | |
|
28 | #define _countof(array) (sizeof(array) / sizeof(array[0])) | |
|
29 | 29 | #endif |
|
30 | 30 | |
|
31 | 31 | static TCHAR pyscript[MAX_PATH + 10]; |
@@ -43,7 +43,7 b' int _tmain(int argc, TCHAR *argv[])' | |||
|
43 | 43 | HANDLE hfind; |
|
44 | 44 | const char *err; |
|
45 | 45 | HMODULE pydll; |
|
46 | void(__cdecl * Py_SetPythonHome)(TCHAR *home); | |
|
46 | void(__cdecl * Py_SetPythonHome)(TCHAR * home); | |
|
47 | 47 | int(__cdecl * Py_Main)(int argc, TCHAR *argv[]); |
|
48 | 48 | |
|
49 | 49 | if (GetModuleFileName(NULL, pyscript, _countof(pyscript)) == 0) { |
@@ -86,11 +86,12 b' int _tmain(int argc, TCHAR *argv[])' | |||
|
86 | 86 | scenario, so let's load python dll from this dir. */ |
|
87 | 87 | FindClose(hfind); |
|
88 | 88 | _tcscpy_s(pydllfile, _countof(pydllfile), pyhome); |
|
89 |
_tcscat_s(pydllfile, _countof(pydllfile), |
|
|
90 | _T(".dll")); | |
|
89 | _tcscat_s(pydllfile, _countof(pydllfile), | |
|
90 | _T("\\") _T(HGPYTHONLIB) _T(".dll")); | |
|
91 | 91 | pydll = LoadLibrary(pydllfile); |
|
92 | 92 | if (pydll == NULL) { |
|
93 |
err = "failed to load private Python DLL " HGPYTHONLIB |
|
|
93 | err = "failed to load private Python DLL " HGPYTHONLIB | |
|
94 | ".dll"; | |
|
94 | 95 | goto bail; |
|
95 | 96 | } |
|
96 | 97 | Py_SetPythonHome = |
General Comments 0
You need to be logged in to leave comments.
Login now