mciwave: Assign to struct instead of using memcpy.

oldstable
Andrew Talbot 2008-03-04 22:30:39 +00:00 committed by Alexandre Julliard
parent c604e075ec
commit 1a540fa4ce
1 changed files with 1 additions and 1 deletions

View File

@ -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