winenas.drv: Assign to struct instead of using memcpy

Andrew Talbot andrew.talbot at talbotville.com
Wed Mar 26 16:56:37 CDT 2008


Changelog:
    winenas.drv: Assign to struct instead of using memcpy.

diff --git a/dlls/winenas.drv/audio.c b/dlls/winenas.drv/audio.c
index 4d94935..3efe3b4 100644
--- a/dlls/winenas.drv/audio.c
+++ b/dlls/winenas.drv/audio.c
@@ -941,7 +941,7 @@ static DWORD wodOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
 
     wwo->wFlags = HIWORD(dwFlags & CALLBACK_TYPEMASK);
 
-    memcpy(&wwo->waveDesc, lpDesc, 	     sizeof(WAVEOPENDESC));
+    wwo->waveDesc = *lpDesc;
     memcpy(&wwo->format,   lpDesc->lpFormat, sizeof(PCMWAVEFORMAT));
 
     if (wwo->format.wBitsPerSample == 0) {



More information about the wine-patches mailing list