mirror of
git://sigrok.org/libserialport
synced 2023-08-10 21:13:24 +03:00
Fix enumeration on Windows.
This commit is contained in:
parent
0d34b4519c
commit
d9573bad9a
@ -144,7 +144,7 @@ int sp_list_ports(struct sp_port ***list_ptr)
|
||||
goto out_free_value;
|
||||
}
|
||||
while (
|
||||
value_len = max_value_len,
|
||||
value_len = max_value_len + 1,
|
||||
data_size = max_data_size,
|
||||
RegEnumValue(key, index, value, &value_len,
|
||||
NULL, &type, (LPBYTE)data, &data_size) == ERROR_SUCCESS)
|
||||
|
Loading…
Reference in New Issue
Block a user