]> sigrok.org Git - libserialport.git/commitdiff
Fix compilation (Win32 UNICODE)
authorsilverbuddy <redacted>
Fri, 21 Mar 2014 17:43:19 +0000 (21:43 +0400)
committersilverbuddy <redacted>
Fri, 21 Mar 2014 17:43:19 +0000 (21:43 +0400)
serialport.c

index 12cb52946f7096644c3b6c9cecbe18465be5c749..86c35f8c1d65aedd6f0a16a1fab739c6e35a53ef 100644 (file)
@@ -389,7 +389,7 @@ enum sp_return sp_list_ports(struct sp_port ***list_ptr)
                data_len = data_size / sizeof(TCHAR);
                data[data_len] = '\0';
 #ifdef UNICODE
-               name_len = WideCharToMultiByte(CP_ACP, 0, data, -1, NULL, 0, NULL, NULL)
+               name_len = WideCharToMultiByte(CP_ACP, 0, data, -1, NULL, 0, NULL, NULL);
 #else
                name_len = data_len + 1;
 #endif