printf format code for integers is %d not %s.

Will backport.
This commit is contained in:
Thomas Heller 2004-12-01 19:43:02 +00:00
parent fd77c6ce5a
commit 8992b9bdf5
1 changed files with 1 additions and 1 deletions

View File

@ -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))