Christian Costa : d3dx9_36: Initialize properly object in CreateEnumObject.

Alexandre Julliard julliard at winehq.org
Fri Jan 18 12:07:35 CST 2013


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

Author: Christian Costa <titan.costa at gmail.com>
Date:   Fri Jan 18 08:49:09 2013 +0100

d3dx9_36: Initialize properly object in CreateEnumObject.

---

 dlls/d3dx9_36/xfile.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/d3dx9_36/xfile.c b/dlls/d3dx9_36/xfile.c
index 234e071..d54ef0f 100644
--- a/dlls/d3dx9_36/xfile.c
+++ b/dlls/d3dx9_36/xfile.c
@@ -492,7 +492,7 @@ static HRESULT WINAPI ID3DXFileImpl_CreateEnumObject(ID3DXFile *iface, const voi
         return E_NOTIMPL;
     }
 
-    object = HeapAlloc(GetProcessHeap(), 0, sizeof(*object));
+    object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*object));
     if (!object)
         return E_OUTOFMEMORY;
 




More information about the wine-cvs mailing list