mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
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:
parent
8440125460
commit
da5efeba93
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,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…
Add table
Add a link
Reference in a new issue