Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit db9353e

Browse files
committed
CloseHandle should be RegCloseKey.
Add extern decl for Py_GetProgramName().
1 parent fdf95dd commit db9353e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

PC/getpath_nt.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ getpythonregpath(HKEY keyBase, BOOL bWin32s)
112112
}
113113

114114
if (newKey)
115-
CloseHandle(newKey);
115+
RegCloseKey(newKey);
116116
return retval;
117117
}
118118
/* Return the initial python search path. This is called once from
@@ -129,6 +129,7 @@ Py_GetPath()
129129
static char *buf = NULL;
130130
char *p;
131131
int n;
132+
extern char *Py_GetProgramName();
132133

133134
if (buf != NULL) {
134135
free(buf);

0 commit comments

Comments
 (0)