summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2012-06-21 16:15:54 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2012-06-21 16:15:54 (GMT)
commitaf21ebb4249ab09feaa03560cebc85226438b8c8 (patch)
tree220ae00130db2200213af4480fd84d355cfe068d /PC
parent91a3468f459ab429992bf4409a8794a758a0314f (diff)
downloadcpython-af21ebb4249ab09feaa03560cebc85226438b8c8.zip
cpython-af21ebb4249ab09feaa03560cebc85226438b8c8.tar.gz
cpython-af21ebb4249ab09feaa03560cebc85226438b8c8.tar.bz2
Fix UNICODE glitch.
Diffstat (limited to 'PC')
-rw-r--r--PC/launcher.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/PC/launcher.c b/PC/launcher.c
index 516d235..60222c4 100644
--- a/PC/launcher.c
+++ b/PC/launcher.c
@@ -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);