]> sigrok.org Git - libserialport.git/blobdiff - serialport.c
Fix compilation (Win32 UNICODE)
[libserialport.git] / 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