Mailing List Archive

Fix get_packagefamilyname helper function on Windows 32-bit (GH-117153)
https://github.com/python/cpython/commit/3be9b9d8722696b95555937bb211dc4cda714d56
commit: 3be9b9d8722696b95555937bb211dc4cda714d56
branch: main
author: Steve Dower <steve.dower@python.org>
committer: zooba <steve.dower@microsoft.com>
date: 2024-03-22T15:00:50Z
summary:

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

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

diff --git a/PC/layout/support/appxmanifest.py b/PC/layout/support/appxmanifest.py
index 1fb03380278f43..53977beb8af834 100644
--- a/PC/layout/support/appxmanifest.py
+++ b/PC/layout/support/appxmanifest.py
@@ -209,7 +209,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 -- python-checkins@python.org
To unsubscribe send an email to python-checkins-leave@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: list-python-checkins@lists.gossamer-threads.com