Re: [ovs-dev] [PATCH v2] Windows: Fix wmi.c to use count of wchar_t instead of sizeof

2017-01-27 Thread Alin Serdean
Thanks for addressing the comment! Acked-by: Alin Gabriel Serdean Alin. > -Original Message- > From: ovs-dev-boun...@openvswitch.org [mailto:ovs-dev- > boun...@openvswitch.org] On Behalf Of Sairam Venugopal > Sent: Friday, January 27, 2017 9:56 AM > To:

[ovs-dev] [PATCH v2] Windows: Fix wmi.c to use count of wchar_t instead of sizeof

2017-01-26 Thread Sairam Venugopal
wcscat_s and wcscpy_s requires number of elements as argument. wchar_t uses 2 bytes for storage and using sizeof(internal_port_query) causes access violation error on Windows 2012 R2 (64 bit). This patch introduces a #define WMI_QUERY_COUNT set to 2048 and uses that instead. Signed-off-by: Sairam