Blob Blame History Raw
diff -rupN --no-dereference Python-3.10.0rc1/Modules/posixmodule.c Python-3.10.0rc1-new/Modules/posixmodule.c
--- Python-3.10.0rc1/Modules/posixmodule.c	2021-08-02 21:53:59.000000000 +0200
+++ Python-3.10.0rc1-new/Modules/posixmodule.c	2021-08-04 16:36:57.396377636 +0200
@@ -5367,7 +5367,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.0rc1/Modules/socketmodule.h Python-3.10.0rc1-new/Modules/socketmodule.h
--- Python-3.10.0rc1/Modules/socketmodule.h	2021-08-02 21:53:59.000000000 +0200
+++ Python-3.10.0rc1-new/Modules/socketmodule.h	2021-08-04 16:36:57.396377636 +0200
@@ -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.0rc1/Modules/_winapi.c Python-3.10.0rc1-new/Modules/_winapi.c
--- Python-3.10.0rc1/Modules/_winapi.c	2021-08-02 21:53:59.000000000 +0200
+++ Python-3.10.0rc1-new/Modules/_winapi.c	2021-08-04 16:36:57.396377636 +0200
@@ -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.0rc1/PC/python_exe.rc Python-3.10.0rc1-new/PC/python_exe.rc
--- Python-3.10.0rc1/PC/python_exe.rc	2021-08-02 21:53:59.000000000 +0200
+++ Python-3.10.0rc1-new/PC/python_exe.rc	2021-08-04 16:36:57.396377636 +0200
@@ -7,7 +7,7 @@
 #include <winuser.h>
 1 RT_MANIFEST "python.manifest"
 
-1 ICON DISCARDABLE "icons\python.ico" 
+1 ICON DISCARDABLE "icons/python.ico"
 
 
 /////////////////////////////////////////////////////////////////////////////
diff -rupN --no-dereference Python-3.10.0rc1/PC/pythonw_exe.rc Python-3.10.0rc1-new/PC/pythonw_exe.rc
--- Python-3.10.0rc1/PC/pythonw_exe.rc	2021-08-02 21:53:59.000000000 +0200
+++ Python-3.10.0rc1-new/PC/pythonw_exe.rc	2021-08-04 16:36:57.396377636 +0200
@@ -7,7 +7,7 @@
 #include <winuser.h>
 1 RT_MANIFEST "python.manifest"
 
-1 ICON DISCARDABLE "icons\pythonw.ico" 
+1 ICON DISCARDABLE "icons/pythonw.ico"
 
 
 /////////////////////////////////////////////////////////////////////////////
diff -rupN --no-dereference Python-3.10.0rc1/PC/winreg.c Python-3.10.0rc1-new/PC/winreg.c
--- Python-3.10.0rc1/PC/winreg.c	2021-08-02 21:53:59.000000000 +0200
+++ Python-3.10.0rc1-new/PC/winreg.c	2021-08-04 16:36:57.397377626 +0200
@@ -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.0rc1/Python/thread_nt.h Python-3.10.0rc1-new/Python/thread_nt.h
--- Python-3.10.0rc1/Python/thread_nt.h	2021-08-02 21:53:59.000000000 +0200
+++ Python-3.10.0rc1-new/Python/thread_nt.h	2021-08-04 16:36:57.397377626 +0200
@@ -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 */