[PATCH 1/5] d3d8: Return E_OUTOFMEMORY on HeapAlloc() failure in device_parent_surface_created().
Henri Verbeet
hverbeet at codeweavers.com
Tue Aug 12 04:11:00 CDT 2014
Similar to device_parent_volume_created().
---
dlls/d3d8/device.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/dlls/d3d8/device.c b/dlls/d3d8/device.c
index fd4cd3c..ee9d555 100644
--- a/dlls/d3d8/device.c
+++ b/dlls/d3d8/device.c
@@ -2947,10 +2947,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;
--
1.7.10.4
More information about the wine-patches
mailing list