ddraw: Do not report IID_IDirect3DHALDevice in ddraw_find_device() with DDRAW_NO3D.

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2018-09-25 01:55:18 +03:30 committed by Alexandre Julliard
parent ced1590255
commit a6f68107e6
1 changed files with 6 additions and 0 deletions

View File

@ -4069,6 +4069,12 @@ static HRESULT ddraw_find_device(struct ddraw *ddraw, const D3DFINDDEVICESEARCH
TRACE("Trying to match GUID %s.\n", debugstr_guid(&fds->guid));
if ((ddraw->flags & DDRAW_NO3D) && IsEqualGUID(&fds->guid, &IID_IDirect3DHALDevice))
{
WARN("HAL device not available without 3D support.\n");
return DDERR_NOTFOUND;
}
for (i = 0; i < guid_count; ++i)
{
if (IsEqualGUID(guids[i], &fds->guid))