mciwave: Assign to struct instead of using memcpy.
This commit is contained in:
parent
c604e075ec
commit
1a540fa4ce
|
@ -323,7 +323,7 @@ static DWORD WAVE_mciCreateRIFFSkeleton(WINE_MCIWAVE* wmw)
|
|||
{
|
||||
wmw->lpWaveFormat = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*wmw->lpWaveFormat));
|
||||
if (!wmw->lpWaveFormat) return MMSYSERR_NOMEM;
|
||||
memcpy(wmw->lpWaveFormat, &wmw->wfxRef, sizeof(wmw->wfxRef));
|
||||
*wmw->lpWaveFormat = wmw->wfxRef;
|
||||
}
|
||||
|
||||
/* we can only record PCM files... there is no way in the MCI API to specify
|
||||
|
|
Loading…
Reference in New Issue