Rico Schüller : d3dx9: Fix HeapAlloc size in D3DXCreateEffectPool.
Alexandre Julliard
julliard at winehq.org
Tue Mar 29 11:43:07 CDT 2011
Module: wine
Branch: master
Commit: be43a5c41470880cb2d44a2e9c7e5b958608fc78
URL: http://source.winehq.org/git/wine.git/?a=commit;h=be43a5c41470880cb2d44a2e9c7e5b958608fc78
Author: Rico Schüller <kgbricola at web.de>
Date: Sun Mar 27 22:12:22 2011 +0200
d3dx9: Fix HeapAlloc size in D3DXCreateEffectPool.
---
dlls/d3dx9_36/effect.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/d3dx9_36/effect.c b/dlls/d3dx9_36/effect.c
index 2697782..efb5da3 100644
--- a/dlls/d3dx9_36/effect.c
+++ b/dlls/d3dx9_36/effect.c
@@ -1084,7 +1084,7 @@ HRESULT WINAPI D3DXCreateEffectPool(LPD3DXEFFECTPOOL* pool)
if (!pool)
return D3DERR_INVALIDCALL;
- object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(ID3DXEffectImpl));
+ object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*object));
if (!object)
{
ERR("Out of memory\n");
More information about the wine-cvs
mailing list