Commit 22339edb authored by Ghislain MARY's avatar Ghislain MARY

Fix build on Win64.

parent f68bf756
......@@ -513,7 +513,7 @@ static void add_or_update_card(MSSndCardManager *m, bctbx_list_t **l, LPWSTR id,
inputlen = wcslen(wname);
returnlen = inputlen * 2;
name = (char *)ms_malloc(returnlen);
if ((err = WideCharToMultiByte(CP_UTF8, 0, wname, -1, name, returnlen, NULL, NULL)) == 0) {
if ((err = WideCharToMultiByte(CP_UTF8, 0, wname, -1, name, (int)returnlen, NULL, NULL)) == 0) {
ms_error("mswasapi: Cannot convert card name to multi-byte string.");
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment