mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-133580: Add missing exception to _sys_getwindowsversion_from_kernel32 (GH-133574)
This commit is contained in:
parent
b44c824856
commit
5d118d0a92
2 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue