Commit c3b27ceb authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

dxgi: Memory allocation size fix.

parent 3c32c816
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment