Andrew Talbot : winenas.drv: Assign to struct instead of using memcpy.
Alexandre Julliard
julliard at winehq.org
Thu Mar 27 07:22:00 CDT 2008
Module: wine
Branch: master
Commit: ddf9697433ae991d34318e6ac58f4226e7e2df09
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ddf9697433ae991d34318e6ac58f4226e7e2df09
Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date: Wed Mar 26 21:56:37 2008 +0000
winenas.drv: Assign to struct instead of using memcpy.
---
dlls/winenas.drv/audio.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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-cvs
mailing list