--- a/mercurial/exewrapper.c Wed Apr 27 14:02:54 2016 -0700
+++ b/mercurial/exewrapper.c Wed Apr 27 09:23:39 2016 -0700
@@ -96,7 +96,8 @@
/* path pyhome exists, let's use it */
FindClose(hfind);
strcpy_s(pydllfile, sizeof(pydllfile), pyhome);
- strcat_s(pydllfile, sizeof(pydllfile), "\\" HGPYTHONLIB);
+ strcat_s(pydllfile, sizeof(pydllfile),
+ "\\" HGPYTHONLIB ".dll");
pydll = LoadLibrary(pydllfile);
if (pydll == NULL) {
err = "failed to load private Python DLL "
@@ -114,7 +115,7 @@
}
if (pydll == NULL) {
- pydll = LoadLibrary(HGPYTHONLIB);
+ pydll = LoadLibrary(HGPYTHONLIB ".dll");
if (pydll == NULL) {
err = "failed to load Python DLL " HGPYTHONLIB ".dll";
goto bail;