summaryrefslogtreecommitdiff
path: root/PC/launcher.c
diff options
context:
space:
mode:
authorMartin v. L?wis <martin@v.loewis.de>2012-06-21 18:15:54 +0200
committerMartin v. L?wis <martin@v.loewis.de>2012-06-21 18:15:54 +0200
commit4e438f9e74bb81b142f88fd51dd02875e2314cff (patch)
tree6f6a4a7a79a41d927e64fc167de72dda70424700 /PC/launcher.c
parent06e7fb0f16eda17333eabd63b87565c3a5e86875 (diff)
downloadcpython-4e438f9e74bb81b142f88fd51dd02875e2314cff.tar.gz
Fix UNICODE glitch.
Diffstat (limited to 'PC/launcher.c')
-rw-r--r--PC/launcher.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/PC/launcher.c b/PC/launcher.c
index 516d2356b5..60222c48f6 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);