wineesd.drv: Assign to structs instead of using memcpy

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


Changelog:
    wineesd.drv: Assign to structs instead of using memcpy.

diff --git a/dlls/wineesd.drv/audio.c b/dlls/wineesd.drv/audio.c
index a5a04db..b57191c 100644
--- a/dlls/wineesd.drv/audio.c
+++ b/dlls/wineesd.drv/audio.c
@@ -1227,7 +1227,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;
     copy_format(lpDesc->lpFormat, &wwo->waveFormat);
 
     if (wwo->waveFormat.Format.wBitsPerSample == 0) {
@@ -1881,8 +1881,8 @@ static DWORD widOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
     dwFlags &= ~WAVE_DIRECTSOUND;
 
     wwi->wFlags = HIWORD(dwFlags & CALLBACK_TYPEMASK);
- 
-    memcpy(&wwi->waveDesc, lpDesc, sizeof(WAVEOPENDESC));
+
+    wwi->waveDesc = *lpDesc;
     copy_format(lpDesc->lpFormat, &wwi->waveFormat);
 
     if (wwi->waveFormat.Format.wBitsPerSample == 0) {



More information about the wine-patches mailing list