[PATCH 2/2] dxva2: Return single software device for GetVideoProcessorDeviceGuids().
Nikolay Sivov
nsivov at codeweavers.com
Thu Sep 17 06:25:36 CDT 2020
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
dlls/dxva2/Makefile.in | 2 +-
dlls/dxva2/main.c | 10 ++++++++--
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/dlls/dxva2/Makefile.in b/dlls/dxva2/Makefile.in
index e3fc2fd6c3a..d331512f019 100644
--- a/dlls/dxva2/Makefile.in
+++ b/dlls/dxva2/Makefile.in
@@ -1,5 +1,5 @@
MODULE = dxva2.dll
-IMPORTS = uuid
+IMPORTS = uuid ole32
IMPORTLIB = dxva2
EXTRADLLFLAGS = -mno-cygwin
diff --git a/dlls/dxva2/main.c b/dlls/dxva2/main.c
index 15d65a58344..22a35c4fbb3 100644
--- a/dlls/dxva2/main.c
+++ b/dlls/dxva2/main.c
@@ -180,9 +180,15 @@ static HRESULT WINAPI device_manager_processor_service_RegisterVideoProcessorSof
static HRESULT WINAPI device_manager_processor_service_GetVideoProcessorDeviceGuids(
IDirectXVideoProcessorService *iface, const DXVA2_VideoDesc *video_desc, UINT *count, GUID **guids)
{
- FIXME("%p, %p, %p, %p.\n", iface, video_desc, count, guids);
+ FIXME("%p, %p, %p, %p semi-stub.\n", iface, video_desc, count, guids);
- return E_NOTIMPL;
+ if (!(*guids = CoTaskMemAlloc(sizeof(**guids))))
+ return E_OUTOFMEMORY;
+
+ memcpy(*guids, &DXVA2_VideoProcSoftwareDevice, sizeof(**guids));
+ *count = 1;
+
+ return S_OK;
}
static HRESULT WINAPI device_manager_processor_service_GetVideoProcessorRenderTargets(
--
2.28.0
More information about the wine-devel
mailing list