From c3b27ceb4de51c7116c986f454cc4e7ab0b6dd6e Mon Sep 17 00:00:00 2001 From: Andrew Talbot Date: Wed, 3 Dec 2008 17:42:06 +0000 Subject: [PATCH] dxgi: Memory allocation size fix. --- dlls/dxgi/dxgi_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/dxgi/dxgi_main.c b/dlls/dxgi/dxgi_main.c index 370fcddb6b9..eaf7b06de0f 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;