]> granicus.if.org Git - python/commitdiff
Fix UNICODE glitch.
authorMartin v. Löwis <martin@v.loewis.de>
Thu, 21 Jun 2012 16:15:54 +0000 (18:15 +0200)
committerMartin v. Löwis <martin@v.loewis.de>
Thu, 21 Jun 2012 16:15:54 +0000 (18:15 +0200)
PC/launcher.c

index 516d2356b584b0843aeeab8e828643dd850d0eef..60222c48f62436c63ff581dc62d6c5a467faeb29 100644 (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);