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;
|
goto out_free_value;
|
||||||
}
|
}
|
||||||
while (
|
while (
|
||||||
value_len = max_value_len,
|
value_len = max_value_len + 1,
|
||||||
data_size = max_data_size,
|
data_size = max_data_size,
|
||||||
RegEnumValue(key, index, value, &value_len,
|
RegEnumValue(key, index, value, &value_len,
|
||||||
NULL, &type, (LPBYTE)data, &data_size) == ERROR_SUCCESS)
|
NULL, &type, (LPBYTE)data, &data_size) == ERROR_SUCCESS)
|
||||||
|
Loading…
Reference in New Issue
Block a user