mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
wined3d: Don't return a surface for a NULL dc in wined3d_device_get_surface_from_dc().
This commit is contained in:
parent
a8504f4f57
commit
08e8b0a70a
1 changed files with 3 additions and 0 deletions
|
@ -5871,6 +5871,9 @@ HRESULT CDECL wined3d_device_get_surface_from_dc(const struct wined3d_device *de
|
|||
|
||||
TRACE("device %p, dc %p, surface %p.\n", device, dc, surface);
|
||||
|
||||
if (!dc)
|
||||
return WINED3DERR_INVALIDCALL;
|
||||
|
||||
LIST_FOR_EACH_ENTRY(resource, &device->resources, struct wined3d_resource, resource_list_entry)
|
||||
{
|
||||
if (resource->resourceType == WINED3DRTYPE_SURFACE)
|
||||
|
|
Loading…
Reference in a new issue