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

This commit is contained in:
Steve Dower 2024-03-22 15:00:50 +00:00 committed by GitHub
parent 63d6f2623e
commit 3be9b9d872
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ def get_packagefamilyname(name, publisher_id):
result = ctypes.create_unicode_buffer(256) result = ctypes.create_unicode_buffer(256)
result_len = ctypes.c_uint32(256) result_len = ctypes.c_uint32(256)
r = ctypes.windll.kernel32.PackageFamilyNameFromId( r = ctypes.windll.kernel32.PackageFamilyNameFromId(
pid, ctypes.byref(result_len), result ctypes.byref(pid), ctypes.byref(result_len), result
) )
if r: if r:
raise OSError(r, "failed to get package family name") raise OSError(r, "failed to get package family name")