dxgi: Memory allocation size fix

Andrew Talbot andrew.talbot at talbotville.com
Wed Dec 3 11:42:06 CST 2008


Changelog:
    dxgi: Memory allocation size fix.

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;



More information about the wine-patches mailing list