summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
Diffstat (limited to 'PC')
-rw-r--r--PC/getpath_nt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/PC/getpath_nt.c b/PC/getpath_nt.c
index 2de74f1..189fc27 100644
--- a/PC/getpath_nt.c
+++ b/PC/getpath_nt.c
@@ -112,7 +112,7 @@ getpythonregpath(HKEY keyBase, BOOL bWin32s)
}
if (newKey)
- CloseHandle(newKey);
+ RegCloseKey(newKey);
return retval;
}
/* Return the initial python search path. This is called once from
@@ -129,6 +129,7 @@ Py_GetPath()
static char *buf = NULL;
char *p;
int n;
+ extern char *Py_GetProgramName();
if (buf != NULL) {
free(buf);