=?UTF-8?Q?Rico=20Sch=C3=BCller=20?=: d3dx9: Use the variable instead of the type in HeapAlloc().
Alexandre Julliard
julliard at winehq.org
Fri Sep 16 13:28:34 CDT 2011
Module: wine
Branch: master
Commit: a7df4958ab0f5b2e039452ed5bc992915a536658
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a7df4958ab0f5b2e039452ed5bc992915a536658
Author: Rico Schüller <kgbricola at web.de>
Date: Fri Sep 16 08:38:47 2011 +0200
d3dx9: Use the variable instead of the type in HeapAlloc().
---
dlls/d3dx9_36/shader.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/d3dx9_36/shader.c b/dlls/d3dx9_36/shader.c
index 5a0f1db..bc5e002 100644
--- a/dlls/d3dx9_36/shader.c
+++ b/dlls/d3dx9_36/shader.c
@@ -1175,7 +1175,7 @@ HRESULT WINAPI D3DXGetShaderConstantTableEx(CONST DWORD* byte_code,
if (hr != D3D_OK)
return D3DXERR_INVALIDDATA;
- object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(ID3DXConstantTableImpl));
+ object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*object));
if (!object)
{
ERR("Out of memory\n");
More information about the wine-cvs
mailing list