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)
}
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);
......
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