Rico Schüller : d3dx9: Use variable instead of type in HeapAlloc.

Alexandre Julliard julliard at winehq.org
Wed Mar 30 13:15:40 CDT 2011


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

Author: Rico Schüller <kgbricola at web.de>
Date:   Wed Mar 30 12:51:37 2011 +0200

d3dx9: Use variable instead of type in HeapAlloc.

---

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

diff --git a/dlls/d3dx9_36/core.c b/dlls/d3dx9_36/core.c
index 6990fbd..c1e9641 100644
--- a/dlls/d3dx9_36/core.c
+++ b/dlls/d3dx9_36/core.c
@@ -110,7 +110,7 @@ HRESULT WINAPI D3DXCreateBuffer(DWORD NumBytes, LPD3DXBUFFER* ppBuffer)
 {
     ID3DXBufferImpl *object;
 
-    object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(ID3DXBufferImpl));
+    object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*object));
     if (object == NULL)
     {
         *ppBuffer = NULL;




More information about the wine-cvs mailing list