summaryrefslogtreecommitdiffstats
path: root/PC/getpath_nt.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-05-05 22:17:45 (GMT)
committerGuido van Rossum <guido@python.org>1997-05-05 22:17:45 (GMT)
commitdb9353e17dc375dda1a4910c70461dc745894834 (patch)
treec44a1ec7b17f6ed7ba09500892b23bd5e6d4f30b /PC/getpath_nt.c
parentfdf95dd525840559d77637802ff117969db19031 (diff)
downloadcpython-db9353e17dc375dda1a4910c70461dc745894834.zip
cpython-db9353e17dc375dda1a4910c70461dc745894834.tar.gz
cpython-db9353e17dc375dda1a4910c70461dc745894834.tar.bz2
CloseHandle should be RegCloseKey.
Add extern decl for Py_GetProgramName().
Diffstat (limited to 'PC/getpath_nt.c')
-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);