mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
d3d9: Return E_OUTOFMEMORY on HeapAlloc() failure in device_parent_surface_created().
This commit is contained in:
parent
ca95dd2c82
commit
ff694bf47d
1 changed files with 1 additions and 4 deletions
|
@ -3468,10 +3468,7 @@ static HRESULT CDECL device_parent_surface_created(struct wined3d_device_parent
|
|||
device_parent, container_parent, surface, parent, parent_ops);
|
||||
|
||||
if (!(d3d_surface = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*d3d_surface))))
|
||||
{
|
||||
FIXME("Failed to allocate surface memory.\n");
|
||||
return D3DERR_OUTOFVIDEOMEMORY;
|
||||
}
|
||||
return E_OUTOFMEMORY;
|
||||
|
||||
surface_init(d3d_surface, surface, device, parent_ops);
|
||||
*parent = d3d_surface;
|
||||
|
|
Loading…
Reference in a new issue