Andrew Talbot : mciwave: Assign to struct instead of using memcpy.
Module: wine Branch: master Commit: 1a540fa4ced8189d7d588461f23a21278369ae25 URL: http://source.winehq.org/git/wine.git/?a=commit;h=1a540fa4ced8189d7d588461f2... Author: Andrew Talbot <andrew.talbot(a)talbotville.com> Date: Tue Mar 4 22:30:39 2008 +0000 mciwave: Assign to struct instead of using memcpy. --- dlls/mciwave/mciwave.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/mciwave/mciwave.c b/dlls/mciwave/mciwave.c index 0b12ad2..7dfedca 100644 --- a/dlls/mciwave/mciwave.c +++ b/dlls/mciwave/mciwave.c @@ -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
participants (1)
-
Alexandre Julliard