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
1 changed files with 1 additions and 1 deletions

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)