mirror of https://github.com/python/cpython.git
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
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue