mirror of
https://github.com/python/cpython.git
synced 2025-11-08 21:52:45 +00:00
Fix UNICODE glitch.
This commit is contained in:
parent
91a3468f45
commit
af21ebb424
1 changed files with 2 additions and 2 deletions
|
|
@ -230,7 +230,7 @@ locate_pythons_for_key(HKEY root, REGSAM flags)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
data_size = sizeof(ip->executable) - 1;
|
data_size = sizeof(ip->executable) - 1;
|
||||||
status = RegQueryValueEx(ip_key, NULL, NULL, &type,
|
status = RegQueryValueExW(ip_key, NULL, NULL, &type,
|
||||||
(LPBYTE)ip->executable, &data_size);
|
(LPBYTE)ip->executable, &data_size);
|
||||||
RegCloseKey(ip_key);
|
RegCloseKey(ip_key);
|
||||||
if (status != ERROR_SUCCESS) {
|
if (status != ERROR_SUCCESS) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue