mciwave: Assign to struct instead of using memcpy

Andrew Talbot andrew.talbot at talbotville.com
Tue Mar 4 16:30:39 CST 2008


Changelog:
    mciwave: Assign to struct instead of using memcpy.

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



More information about the wine-patches mailing list