Michael Stefaniuc : dswave: Finish the cleanup of create_dswave().

Alexandre Julliard julliard at wine.codeweavers.com
Wed Jun 10 10:09:18 CDT 2015


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Wed Jun 10 01:07:49 2015 +0200

dswave: Finish the cleanup of create_dswave().

---

 dlls/dswave/dswave.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/dlls/dswave/dswave.c b/dlls/dswave/dswave.c
index b93908d..0127634 100644
--- a/dlls/dswave/dswave.c
+++ b/dlls/dswave/dswave.c
@@ -425,14 +425,14 @@ static const IPersistStreamVtbl persiststream_vtbl = {
 /* for ClassFactory */
 HRESULT WINAPI create_dswave(REFIID lpcGUID, void **ppobj)
 {
-	IDirectMusicWaveImpl* obj;
+    IDirectMusicWaveImpl *obj;
     HRESULT hr;
 
-	obj = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirectMusicWaveImpl));
-	if (NULL == obj) {
-		*ppobj = NULL;
-		return E_OUTOFMEMORY;
-	}
+    obj = HeapAlloc(GetProcessHeap(), 0, sizeof(IDirectMusicWaveImpl));
+    if (!obj) {
+        *ppobj = NULL;
+        return E_OUTOFMEMORY;
+    }
     obj->IUnknown_iface.lpVtbl = &unknown_vtbl;
     obj->ref = 1;
     dmobject_init(&obj->dmobj, &CLSID_DirectSoundWave, &obj->IUnknown_iface);




More information about the wine-cvs mailing list