mirror of https://github.com/python/cpython
Fix get_packagefamilyname helper function on Windows 32-bit (GH-117153)
This commit is contained in:
parent
63d6f2623e
commit
3be9b9d872
|
@ -209,7 +209,7 @@ def get_packagefamilyname(name, publisher_id):
|
|||
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")
|
||||
|
|
Loading…
Reference in New Issue