dxgi: Memory allocation size fix.

oldstable
Andrew Talbot 2008-12-03 17:42:06 +00:00 committed by Alexandre Julliard
parent 3c32c81621
commit c3b27ceb4d
1 changed files with 1 additions and 1 deletions

View File

@ -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;