[Bug 21108] Comanche 3 Gold Demo crashes

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Mar 11 16:05:37 CST 2016


https://bugs.winehq.org/show_bug.cgi?id=21108

Louis Lenders <xerox_xerox2000 at yahoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|-unknown                    |directx-dsound

--- Comment #17 from Louis Lenders <xerox_xerox2000 at yahoo.co.uk> ---
Still crashes in currnt git. Looks like a bug somewhere in dsound. With minimal
hack below the crash is gone and the game starts for me



diff --git a/dlls/dsound/primary.c b/dlls/dsound/primary.c
index 3f8a478..b50df09 100644
--- a/dlls/dsound/primary.c
+++ b/dlls/dsound/primary.c
@@ -977,7 +977,7 @@ static HRESULT WINAPI
PrimaryBufferImpl_Lock(IDirectSoundBuffer *iface, DWORD wr

        if (writecursor+writebytes <= device->buflen) {
                *(LPBYTE*)lplpaudioptr1 = device->buffer+writecursor;
-               *audiobytes1 = writebytes;
+               //*audiobytes1 = writebytes;
                if (lplpaudioptr2)
                        *(LPBYTE*)lplpaudioptr2 = NULL;
                if (audiobytes2)

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list