Replace a memcpy with mal_copy_memory.

This commit is contained in:
David Reid
2018-03-03 21:42:38 +10:00
parent e2f0dce7c0
commit 7a3203ed82
+1 -1
View File
@@ -3755,7 +3755,7 @@ static mal_result mal_enumerate_devices__wasapi(mal_context* pContext, mal_devic
continue;
}
memcpy(pInfo->id.wasapi, id, idlen * sizeof(wchar_t));
mal_copy_memory(pInfo->id.wasapi, id, idlen * sizeof(wchar_t));
pInfo->id.wasapi[idlen] = '\0';
mal_CoTaskMemFree(pContext, id);