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

(cherry picked from commit 3be9b9d872)

Co-authored-by: Steve Dower <steve.dower@python.org>
This commit is contained in:
Miss Islington (bot) 2024-03-22 16:20:38 +01:00 committed by GitHub
parent 8440125460
commit da5efeba93
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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")