gh-133580: Add missing exception to _sys_getwindowsversion_from_kernel32 (GH-133574)
This commit is contained in:
@@ -1643,6 +1643,7 @@ static PyObject *
|
||||
_sys_getwindowsversion_from_kernel32(void)
|
||||
{
|
||||
#ifndef MS_WINDOWS_DESKTOP
|
||||
PyErr_SetString(PyExc_OSError, "cannot read version info on this platform");
|
||||
return NULL;
|
||||
#else
|
||||
HANDLE hKernel32;
|
||||
|
||||
Reference in New Issue
Block a user