Commit ac6db331 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

quartz: Return E_OUTOFMEMORY of the StdMemAllocator is unable to allocate memory.

parent ffe9cc87
......@@ -802,6 +802,9 @@ static HRESULT StdMemAllocator_Alloc(IMemAllocator * iface)
/* allocate memory */
This->pMemory = VirtualAlloc(NULL, (This->base.props.cbBuffer + This->base.props.cbPrefix) * This->base.props.cBuffers, MEM_COMMIT, PAGE_READWRITE);
if (!This->pMemory)
return E_OUTOFMEMORY;
for (i = This->base.props.cBuffers - 1; i >= 0; i--)
{
/* pbBuffer does not start at the base address, it starts at base + cbPrefix */
......
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