]> granicus.if.org Git - python/commitdiff
CloseHandle should be RegCloseKey.
authorGuido van Rossum <guido@python.org>
Mon, 5 May 1997 22:17:45 +0000 (22:17 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 5 May 1997 22:17:45 +0000 (22:17 +0000)
Add extern decl for Py_GetProgramName().

PC/getpath_nt.c

index 2de74f12c45a867dd9103f56951dbd1b0121fb52..189fc27948699e76607c0a91777a83a07aaa269e 100644 (file)
@@ -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);