1
0
mirror of git://sigrok.org/libserialport synced 2023-08-10 21:13:24 +03:00

Fix enumeration on Windows.

This commit is contained in:
Martin Ling 2013-11-04 02:16:21 +00:00 committed by Uwe Hermann
parent 0d34b4519c
commit d9573bad9a

View File

@ -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)