1
0
Fork 0

Codechange: use assignment over MemCpyT

pull/13264/head
glx22 2025-05-08 00:44:37 +02:00 committed by Loïc Guilloux
parent 6356311fbc
commit aba5e1258e
1 changed files with 1 additions and 1 deletions

View File

@ -914,8 +914,8 @@ static std::optional<std::string_view> LoadDefaultDLSFile(std::optional<std::str
wave->ulOffsetTable[0] = offsetof(WAVE_DOWNLOAD, dmWave);
wave->ulOffsetTable[1] = offsetof(WAVE_DOWNLOAD, dmWaveData);
wave->dmWave.ulWaveDataIdx = 1;
MemCpyT((PCMWAVEFORMAT *)&wave->dmWave.WaveformatEx, &dls_file.waves[i].fmt, 1);
wave->dmWaveData.cbSize = (DWORD)dls_file.waves[i].data.size();
reinterpret_cast<PCMWAVEFORMAT &>(wave->dmWave.WaveformatEx) = dls_file.waves[i].fmt;
std::copy_n(dls_file.waves[i].data.begin(), dls_file.waves[i].data.size(), wave->dmWaveData.byData);
_dls_downloads.push_back(dl_wave);