Andrew Talbot : dxgi: Memory allocation size fix.
Module: wine Branch: master Commit: c3b27ceb4de51c7116c986f454cc4e7ab0b6dd6e URL: http://source.winehq.org/git/wine.git/?a=commit;h=c3b27ceb4de51c7116c986f454... Author: Andrew Talbot <andrew.talbot(a)talbotville.com> Date: Wed Dec 3 17:42:06 2008 +0000 dxgi: Memory allocation size fix. --- dlls/dxgi/dxgi_main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/dxgi/dxgi_main.c b/dlls/dxgi/dxgi_main.c index 370fcdd..eaf7b06 100644 --- a/dlls/dxgi/dxgi_main.c +++ b/dlls/dxgi/dxgi_main.c @@ -110,7 +110,7 @@ HRESULT WINAPI CreateDXGIFactory(REFIID riid, void **factory) for (i = 0; i < object->adapter_count; ++i) { - struct dxgi_adapter *adapter = HeapAlloc(GetProcessHeap(), 0, sizeof(**object->adapters)); + struct dxgi_adapter *adapter = HeapAlloc(GetProcessHeap(), 0, sizeof(*adapter)); if (!adapter) { UINT j;
participants (1)
-
Alexandre Julliard