diff -rupN --no-dereference Python-3.10.9/Modules/posixmodule.c Python-3.10.9-new/Modules/posixmodule.c --- Python-3.10.9/Modules/posixmodule.c 2022-12-06 19:31:21.000000000 +0100 +++ Python-3.10.9-new/Modules/posixmodule.c 2022-12-08 09:36:56.848024805 +0100 @@ -5374,7 +5374,7 @@ os_utime_impl(PyObject *module, path_t * /*[clinic end generated code: output=cfcac69d027b82cf input=2fbd62a2f228f8f4]*/ { #ifdef MS_WINDOWS - HANDLE hFile; + HANDLE hFile = 0; FILETIME atime, mtime; #else int result; diff -rupN --no-dereference Python-3.10.9/Modules/socketmodule.h Python-3.10.9-new/Modules/socketmodule.h --- Python-3.10.9/Modules/socketmodule.h 2022-12-06 19:31:21.000000000 +0100 +++ Python-3.10.9-new/Modules/socketmodule.h 2022-12-08 09:36:56.849024805 +0100 @@ -70,8 +70,10 @@ struct SOCKADDR_BTH_REDEF { */ # ifdef SIO_GET_MULTICAST_FILTER # include <mstcpip.h> /* for SIO_RCVALL */ +#ifndef __MINGW32__ /* resolve by configure */ # define HAVE_ADDRINFO # define HAVE_SOCKADDR_STORAGE +#endif # define HAVE_GETADDRINFO # define HAVE_GETNAMEINFO # define ENABLE_IPV6 diff -rupN --no-dereference Python-3.10.9/Modules/_winapi.c Python-3.10.9-new/Modules/_winapi.c --- Python-3.10.9/Modules/_winapi.c 2022-12-06 19:31:21.000000000 +0100 +++ Python-3.10.9-new/Modules/_winapi.c 2022-12-08 09:36:56.849024805 +0100 @@ -957,7 +957,7 @@ getattributelist(PyObject *obj, const ch DWORD err; BOOL result; PyObject *value; - Py_ssize_t handle_list_size; + Py_ssize_t handle_list_size = 0; DWORD attribute_count = 0; SIZE_T attribute_list_size = 0; diff -rupN --no-dereference Python-3.10.9/PC/python_exe.rc Python-3.10.9-new/PC/python_exe.rc --- Python-3.10.9/PC/python_exe.rc 2022-12-06 19:31:21.000000000 +0100 +++ Python-3.10.9-new/PC/python_exe.rc 2022-12-08 09:36:56.849024805 +0100 @@ -12,7 +12,7 @@ // current versions of Windows. 1 RT_MANIFEST "python.manifest" -1 ICON DISCARDABLE "icons\python.ico" +1 ICON DISCARDABLE "icons/python.ico" ///////////////////////////////////////////////////////////////////////////// diff -rupN --no-dereference Python-3.10.9/PC/pythonw_exe.rc Python-3.10.9-new/PC/pythonw_exe.rc --- Python-3.10.9/PC/pythonw_exe.rc 2022-12-06 19:31:21.000000000 +0100 +++ Python-3.10.9-new/PC/pythonw_exe.rc 2022-12-08 09:36:56.850024805 +0100 @@ -12,7 +12,7 @@ // current versions of Windows. 1 RT_MANIFEST "python.manifest" -1 ICON DISCARDABLE "icons\pythonw.ico" +1 ICON DISCARDABLE "icons/pythonw.ico" ///////////////////////////////////////////////////////////////////////////// diff -rupN --no-dereference Python-3.10.9/PC/winreg.c Python-3.10.9-new/PC/winreg.c --- Python-3.10.9/PC/winreg.c 2022-12-06 19:31:21.000000000 +0100 +++ Python-3.10.9-new/PC/winreg.c 2022-12-08 09:36:56.850024805 +0100 @@ -794,6 +794,7 @@ Reg2Py(BYTE *retDataBuf, DWORD retDataSi case REG_BINARY: /* ALSO handle ALL unknown data types here. Even if we can't support it natively, we should handle the bits. */ + /* fallthrough */ default: if (retDataSize == 0) { Py_INCREF(Py_None); diff -rupN --no-dereference Python-3.10.9/Python/thread_nt.h Python-3.10.9-new/Python/thread_nt.h --- Python-3.10.9/Python/thread_nt.h 2022-12-06 19:31:21.000000000 +0100 +++ Python-3.10.9-new/Python/thread_nt.h 2022-12-08 09:36:56.850024805 +0100 @@ -349,8 +349,9 @@ PyThread_release_lock(PyThread_type_lock { dprintf(("%lu: PyThread_release_lock(%p) called\n", PyThread_get_thread_ident(),aLock)); - if (!(aLock && LeaveNonRecursiveMutex((PNRMUTEX) aLock))) + if (!(aLock && LeaveNonRecursiveMutex((PNRMUTEX) aLock))) { dprintf(("%lu: Could not PyThread_release_lock(%p) error: %ld\n", PyThread_get_thread_ident(), aLock, GetLastError())); + } } /* minimum/maximum thread stack sizes supported */