Akihiro Sagawa : dsound: Don't copy the notify object on duplicate.

Alexandre Julliard julliard at winehq.org
Fri Jul 22 10:15:59 CDT 2011


Module: wine
Branch: master
Commit: 3c9bd6ba2afef7f91a8bb18f8b55b3877790369a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3c9bd6ba2afef7f91a8bb18f8b55b3877790369a

Author: Akihiro Sagawa <sagawa.aki at gmail.com>
Date:   Thu Jul 21 21:53:46 2011 +0900

dsound: Don't copy the notify object on duplicate.

---

 dlls/dsound/buffer.c       |    1 +
 dlls/dsound/tests/dsound.c |    1 -
 2 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/dsound/buffer.c b/dlls/dsound/buffer.c
index 4c25402..dbec55d 100644
--- a/dlls/dsound/buffer.c
+++ b/dlls/dsound/buffer.c
@@ -1213,6 +1213,7 @@ HRESULT IDirectSoundBufferImpl_Duplicate(
     dsb->ref = 0;
     dsb->state = STATE_STOPPED;
     dsb->buf_mixpos = dsb->sec_mixpos = 0;
+    dsb->notify = NULL;
     dsb->device = device;
     dsb->ds3db = NULL;
     dsb->iks = NULL; /* FIXME? */
diff --git a/dlls/dsound/tests/dsound.c b/dlls/dsound/tests/dsound.c
index 7eb882d..1eef7fb 100644
--- a/dlls/dsound/tests/dsound.c
+++ b/dlls/dsound/tests/dsound.c
@@ -1185,7 +1185,6 @@ static HRESULT test_duplicate(LPGUID lpGuid)
                                 event,WAIT_OBJECT_0+1);
 
                     ref=IDirectSoundNotify_Release(dup_notify);
-                    todo_wine
                     ok(ref==0,"IDirectSoundNotify_Release() has %d references, "
                        "should have 0\n",ref);
                 }




More information about the wine-cvs mailing list