From: Guido van Rossum Date: Mon, 5 May 1997 22:17:45 +0000 (+0000) Subject: CloseHandle should be RegCloseKey. X-Git-Tag: v1.5a1~65 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=db9353e17dc375dda1a4910c70461dc745894834;p=python CloseHandle should be RegCloseKey. Add extern decl for Py_GetProgramName(). --- diff --git a/PC/getpath_nt.c b/PC/getpath_nt.c index 2de74f12c4..189fc27948 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);