mirror of
git://sigrok.org/libserialport
synced 2023-08-10 21:13:24 +03:00
Fix compilation (Win32 UNICODE)
This commit is contained in:
parent
3ceb8aecff
commit
904ac164bf
@ -389,7 +389,7 @@ enum sp_return sp_list_ports(struct sp_port ***list_ptr)
|
|||||||
data_len = data_size / sizeof(TCHAR);
|
data_len = data_size / sizeof(TCHAR);
|
||||||
data[data_len] = '\0';
|
data[data_len] = '\0';
|
||||||
#ifdef UNICODE
|
#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
|
#else
|
||||||
name_len = data_len + 1;
|
name_len = data_len + 1;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user