From: silverbuddy Date: Fri, 21 Mar 2014 17:43:19 +0000 (+0400) Subject: Fix compilation (Win32 UNICODE) X-Git-Tag: libserialport-0.1.0~7^2~1 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=904ac164bf355dc87f6928cb132dc24ac1774188;p=libserialport.git Fix compilation (Win32 UNICODE) --- diff --git a/serialport.c b/serialport.c index 12cb529..86c35f8 100644 --- a/serialport.c +++ b/serialport.c @@ -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