summaryrefslogtreecommitdiffstats
path: root/Python/dynload_win.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/dynload_win.c')
-rw-r--r--Python/dynload_win.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Python/dynload_win.c b/Python/dynload_win.c
index 9e68cac..08a2a89 100644
--- a/Python/dynload_win.c
+++ b/Python/dynload_win.c
@@ -49,10 +49,13 @@ const struct filedescr _PyImport_DynLoadFiletab[] = {
};
-dl_funcptr _PyImport_GetDynLoadFunc(const char *name, const char *funcname,
+dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname,
const char *pathname, FILE *fp)
{
dl_funcptr p;
+ char funcname[258];
+
+ sprintf(funcname, "init%.200s", shortname);
#ifdef MS_WIN32
{