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

Fix compilation (Win32 UNICODE)

This commit is contained in:
silverbuddy 2014-03-21 21:43:19 +04:00
parent 3ceb8aecff
commit 904ac164bf

View 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