]> sigrok.org Git - libserialport.git/commitdiff
Fix enumeration on Windows.
authorMartin Ling <redacted>
Mon, 4 Nov 2013 02:16:21 +0000 (02:16 +0000)
committerUwe Hermann <redacted>
Thu, 14 Nov 2013 23:42:39 +0000 (00:42 +0100)
serialport.c

index 7022a9dedc8e16d5427d51dd74f54b488e779bb1..5b5739dff58991da8396bf9af352eb3351d1535e 100644 (file)
@@ -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)