Commit 4d4facd7 authored by Guido van Rossum's avatar Guido van Rossum

CloseHandle should be RegCloseKey.

Add extern decl for Py_GetProgramName().
parent 638911bf
...@@ -112,7 +112,7 @@ getpythonregpath(HKEY keyBase, BOOL bWin32s) ...@@ -112,7 +112,7 @@ getpythonregpath(HKEY keyBase, BOOL bWin32s)
} }
if (newKey) if (newKey)
CloseHandle(newKey); RegCloseKey(newKey);
return retval; return retval;
} }
/* Return the initial python search path. This is called once from /* Return the initial python search path. This is called once from
...@@ -129,6 +129,7 @@ Py_GetPath() ...@@ -129,6 +129,7 @@ Py_GetPath()
static char *buf = NULL; static char *buf = NULL;
char *p; char *p;
int n; int n;
extern char *Py_GetProgramName();
if (buf != NULL) { if (buf != NULL) {
free(buf); free(buf);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment