From 904ac164bf355dc87f6928cb132dc24ac1774188 Mon Sep 17 00:00:00 2001 From: silverbuddy Date: Fri, 21 Mar 2014 21:43:19 +0400 Subject: [PATCH] Fix compilation (Win32 UNICODE) --- serialport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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