##// END OF EJS Templates
exewrapper: add .dll to LoadLibrary() argument...
Gregory Szorc -
r29019:210bb28c stable
parent child Browse files
Show More
@@ -96,7 +96,8 b' int main(int argc, char *argv[])'
96 /* path pyhome exists, let's use it */
96 /* path pyhome exists, let's use it */
97 FindClose(hfind);
97 FindClose(hfind);
98 strcpy_s(pydllfile, sizeof(pydllfile), pyhome);
98 strcpy_s(pydllfile, sizeof(pydllfile), pyhome);
99 strcat_s(pydllfile, sizeof(pydllfile), "\\" HGPYTHONLIB);
99 strcat_s(pydllfile, sizeof(pydllfile),
100 "\\" HGPYTHONLIB ".dll");
100 pydll = LoadLibrary(pydllfile);
101 pydll = LoadLibrary(pydllfile);
101 if (pydll == NULL) {
102 if (pydll == NULL) {
102 err = "failed to load private Python DLL "
103 err = "failed to load private Python DLL "
@@ -114,7 +115,7 b' int main(int argc, char *argv[])'
114 }
115 }
115
116
116 if (pydll == NULL) {
117 if (pydll == NULL) {
117 pydll = LoadLibrary(HGPYTHONLIB);
118 pydll = LoadLibrary(HGPYTHONLIB ".dll");
118 if (pydll == NULL) {
119 if (pydll == NULL) {
119 err = "failed to load Python DLL " HGPYTHONLIB ".dll";
120 err = "failed to load Python DLL " HGPYTHONLIB ".dll";
120 goto bail;
121 goto bail;
General Comments 0
You need to be logged in to leave comments. Login now