[PATCH 2/6] quartz/vmr9: Remove a redundant check from VMR9_SurfaceAllocator_InitializeDevice().
Zebediah Figura
z.figura12 at gmail.com
Mon May 11 22:30:10 CDT 2020
This check is already made in allocate_surfaces().
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
dlls/quartz/vmr9.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/dlls/quartz/vmr9.c b/dlls/quartz/vmr9.c
index 44ad2965122..2bfbd8e8210 100644
--- a/dlls/quartz/vmr9.c
+++ b/dlls/quartz/vmr9.c
@@ -2615,12 +2615,6 @@ static HRESULT WINAPI VMR9_SurfaceAllocator_InitializeDevice(IVMRSurfaceAllocato
{
struct default_presenter *This = impl_from_IVMRSurfaceAllocatorEx9(iface);
- if (This->pVMR9->mode != VMR9Mode_Windowed && !This->pVMR9->hWndClippingWindow)
- {
- ERR("No window set\n");
- return VFW_E_WRONG_STATE;
- }
-
This->info = *allocinfo;
if (!CreateRenderingWindow(This, allocinfo, numbuffers))
--
2.26.2
More information about the wine-devel
mailing list