diff options
author | Stefan Umbricht <stefan.umbricht@mecos.com> | 2022-08-04 10:13:52 +0200 |
---|---|---|
committer | Stefan Umbricht <stefan.umbricht@mecos.com> | 2022-08-04 10:13:52 +0200 |
commit | b0732c7692a3b1694104898e137eafa0059d4f96 (patch) | |
tree | dd2757616a294fe2ba3b90176d941f1d2d9ae4ce | |
parent | 31fa4807d73ed4eb9891a88a15817b439c4eea2d (diff) | |
download | pyserial-b0732c7692a3b1694104898e137eafa0059d4f96.tar.gz |
Allow for longer location Strings.
-rw-r--r-- | serial/tools/list_ports_windows.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/serial/tools/list_ports_windows.py b/serial/tools/list_ports_windows.py index 0c6956f..0dc8286 100644 --- a/serial/tools/list_ports_windows.py +++ b/serial/tools/list_ports_windows.py @@ -343,7 +343,7 @@ def iterate_comports(): info.serial_number = get_parent_serial_number(devinfo.DevInst, info.vid, info.pid) # calculate a location string - loc_path_str = ctypes.create_unicode_buffer(250) + loc_path_str = ctypes.create_unicode_buffer(500) if SetupDiGetDeviceRegistryProperty( g_hdi, ctypes.byref(devinfo), |