dsound: Unset variable on failure in IKsBufferPropertySetImpl_Create
Maarten Lankhorst
m.b.lankhorst at gmail.com
Tue Jun 12 01:26:53 CDT 2007
Code seems to only check for value of *piks, so current code crashes.
-------------- next part --------------
>From 87871b438635ebc5f205157822a255aeae1e808c Mon Sep 17 00:00:00 2001
From: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date: Wed, 6 Jun 2007 21:53:26 +0200
Subject: [PATCH] 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;
--
1.4.4.2
More information about the wine-patches
mailing list