Fix UNICODE glitch.

This commit is contained in:
Martin v. Löwis 2012-06-21 18:15:54 +02:00
parent 91a3468f45
commit af21ebb424
1 changed files with 2 additions and 2 deletions

View File

@ -230,8 +230,8 @@ locate_pythons_for_key(HKEY root, REGSAM flags)
continue;
}
data_size = sizeof(ip->executable) - 1;
status = RegQueryValueEx(ip_key, NULL, NULL, &type,
(LPBYTE) ip->executable, &data_size);
status = RegQueryValueExW(ip_key, NULL, NULL, &type,
(LPBYTE)ip->executable, &data_size);
RegCloseKey(ip_key);
if (status != ERROR_SUCCESS) {
winerror(status, message, MSGSIZE);