mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 16:54:03 +02:00
Replace a memcpy with mal_copy_memory.
This commit is contained in:
@@ -3755,7 +3755,7 @@ static mal_result mal_enumerate_devices__wasapi(mal_context* pContext, mal_devic
|
|||||||
continue;
|
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';
|
pInfo->id.wasapi[idlen] = '\0';
|
||||||
|
|
||||||
mal_CoTaskMemFree(pContext, id);
|
mal_CoTaskMemFree(pContext, id);
|
||||||
|
|||||||
Reference in New Issue
Block a user