[PATCH] (re-)added line, which obviously has been accidently delete=
Matthias Derer
webmaster at tonstube.de
Mon Apr 21 13:47:05 CDT 2008
d, when switching from memcpy to structs in 0.9.59
Description:
In version 0.9.59, a patch by Andrew Talbot introduced the use of structs in=
stead of memcpy.
In the patch for dlls/winejack.drv/audio.c he obviously deleted a line which=
shouldn't have been deleted
resulting in buffer underruns when using the jack driver in wine.
I just "undeleted" the line (assigning wFlags to the output).
fixes http://bugs.winehq.org/show_bug.cgi?id=3D12680
Changelog entry:
(re-)added line, which has been deleted, when switching from memcpy to struc=
ts
---
dlls/winejack.drv/audio.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/winejack.drv/audio.c b/dlls/winejack.drv/audio.c
index 0e742f4..b196e4a 100644
--- a/dlls/winejack.drv/audio.c
+++ b/dlls/winejack.drv/audio.c
@@ -1307,6 +1307,7 @@ static DWORD wodOpen(WORD wDevID, LPWAVEOPENDESC lpDes=
c, DWORD dwFlags)
=20
dwFlags &=3D ~WAVE_DIRECTSOUND; /* direct sound not supported, ignore =
the flag */
=20
+ wwo->wFlags =3D HIWORD(dwFlags & CALLBACK_TYPEMASK);
=20
wwo->waveDesc =3D *lpDesc;
memcpy(&wwo->format, lpDesc->lpFormat, sizeof(PCMWAVEFORMAT));
--=20
1.5.5
--=_kr944nkbw8g--
More information about the wine-patches
mailing list