Commit ca95dd2c authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

d3d8: Return E_OUTOFMEMORY on HeapAlloc() failure in device_parent_surface_created().

parent 1ed9760b
...@@ -2947,10 +2947,7 @@ static HRESULT CDECL device_parent_surface_created(struct wined3d_device_parent ...@@ -2947,10 +2947,7 @@ static HRESULT CDECL device_parent_surface_created(struct wined3d_device_parent
device_parent, container_parent, surface, parent, parent_ops); device_parent, container_parent, surface, parent, parent_ops);
if (!(d3d_surface = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*d3d_surface)))) if (!(d3d_surface = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*d3d_surface))))
{ return E_OUTOFMEMORY;
FIXME("Failed to allocate surface memory.\n");
return D3DERR_OUTOFVIDEOMEMORY;
}
surface_init(d3d_surface, surface, device, parent_ops); surface_init(d3d_surface, surface, device, parent_ops);
*parent = d3d_surface; *parent = d3d_surface;
......
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