Maarten Lankhorst : dsound: Unset variable on failure in IKsBufferPropertySetImpl_Create.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Jun 12 06:30:49 CDT 2007


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

Author: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date:   Wed Jun  6 21:53:26 2007 +0200

dsound: Unset variable on failure in IKsBufferPropertySetImpl_Create.

---

 dlls/dsound/propset.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/dsound/propset.c b/dlls/dsound/propset.c
index 7bb7f4f..4017f07 100644
--- a/dlls/dsound/propset.c
+++ b/dlls/dsound/propset.c
@@ -200,6 +200,7 @@ HRESULT IKsBufferPropertySetImpl_Create(
     PIDSDRIVERPROPERTYSET ps = NULL;
     IKsBufferPropertySetImpl *iks;
     TRACE("(%p,%p)\n",dsb,piks);
+    *piks = NULL;
 
     if (!dsb->hwbuf)
         return DSERR_INVALIDPARAM;




More information about the wine-cvs mailing list