From: Martin v. Löwis Date: Thu, 21 Jun 2012 16:15:54 +0000 (+0200) Subject: Fix UNICODE glitch. X-Git-Tag: v3.3.0b1~168^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=af21ebb4249ab09feaa03560cebc85226438b8c8;p=python Fix UNICODE glitch. --- 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);