From 6502ac993d24ed4fad480098d113ef59207737de Mon Sep 17 00:00:00 2001 From: Zebediah Figura Date: Mon, 11 May 2020 22:30:10 -0500 Subject: [PATCH] quartz/vmr9: Remove a redundant check from VMR9_SurfaceAllocator_InitializeDevice(). This check is already made in allocate_surfaces(). Signed-off-by: Zebediah Figura Signed-off-by: Alexandre Julliard --- 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))