printf format code for integers is %d not %s.
Will backport.
This commit is contained in:
parent
fd77c6ce5a
commit
8992b9bdf5
|
@ -617,7 +617,7 @@ static HINSTANCE LoadPythonDll(char *fname)
|
||||||
if (h)
|
if (h)
|
||||||
return h;
|
return h;
|
||||||
wsprintf(subkey_name,
|
wsprintf(subkey_name,
|
||||||
"SOFTWARE\\Python\\PythonCore\\%s.%s\\InstallPath",
|
"SOFTWARE\\Python\\PythonCore\\%d.%d\\InstallPath",
|
||||||
py_major, py_minor);
|
py_major, py_minor);
|
||||||
if (ERROR_SUCCESS != RegQueryValue(HKEY_CURRENT_USER, subkey_name,
|
if (ERROR_SUCCESS != RegQueryValue(HKEY_CURRENT_USER, subkey_name,
|
||||||
fullpath, &size))
|
fullpath, &size))
|
||||||
|
|
Loading…
Reference in New Issue