Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit af21ebb

Browse files
committed
Fix UNICODE glitch.
1 parent 91a3468 commit af21ebb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

PC/launcher.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,8 @@ locate_pythons_for_key(HKEY root, REGSAM flags)
230230
continue;
231231
}
232232
data_size = sizeof(ip->executable) - 1;
233-
status = RegQueryValueEx(ip_key, NULL, NULL, &type,
234-
(LPBYTE) ip->executable, &data_size);
233+
status = RegQueryValueExW(ip_key, NULL, NULL, &type,
234+
(LPBYTE)ip->executable, &data_size);
235235
RegCloseKey(ip_key);
236236
if (status != ERROR_SUCCESS) {
237237
winerror(status, message, MSGSIZE);

0 commit comments

Comments
 (0)