8000 gh-102255: Use GetVersionEx instead of GetVersionExW to match argumen… · python/cpython@96e05b6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 96e05b6

Browse files
authored
gh-102255: Use GetVersionEx instead of GetVersionExW to match argument type (GH-102583)
Since we pass a structure of type `OSVERSIONINFOEX`, we need to call `GetVersionEx` instead of `GetVersionExW`.
1 parent 5e6661b commit 96e05b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/socketmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ remove_unusable_flags(PyObject *m)
353353
}
354354
#ifndef MS_WINDOWS_DESKTOP
355355
info.dwOSVersionInfoSize = sizeof(info);
356-
if (!GetVersionExW((OSVERSIONINFOW*) &info)) {
356+
if (!GetVersionEx((OSVERSIONINFO*) &info)) {
357357
PyErr_SetFromWindowsErr(0);
358358
return -1;
359359
}

0 commit comments

Comments
 (0)
0