https://github.com/python/cpython/commit/da5efeba938535cd4dc2e7fc15c6da1acb68ea08
commit: da5efeba938535cd4dc2e7fc15c6da1acb68ea08
branch: 3.11
author: Miss Islington (bot) <[email protected]>
committer: zooba <[email protected]>
date: 2024-03-22T15:20:38Z
summary:

Fix get_packagefamilyname helper function on Windows 32-bit (GH-117153)

(cherry picked from commit 3be9b9d8722696b95555937bb211dc4cda714d56)

Co-authored-by: Steve Dower <[email protected]>

files:
M PC/layout/support/appxmanifest.py

diff --git a/PC/layout/support/appxmanifest.py 
b/PC/layout/support/appxmanifest.py
index 427a36f31c8f9e..625f88ef8ecc4d 100644
--- a/PC/layout/support/appxmanifest.py
+++ b/PC/layout/support/appxmanifest.py
@@ -210,7 +210,7 @@ class PACKAGE_ID(ctypes.Structure):
     result = ctypes.create_unicode_buffer(256)
     result_len = ctypes.c_uint32(256)
     r = ctypes.windll.kernel32.PackageFamilyNameFromId(
-        pid, ctypes.byref(result_len), result
+        ctypes.byref(pid), ctypes.byref(result_len), result
     )
     if r:
         raise OSError(r, "failed to get package family name")

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to