dxgi: Memory allocation size fix.
This commit is contained in:
parent
3c32c81621
commit
c3b27ceb4d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue