diff --git a/dlls/quartz/videorenderer.c b/dlls/quartz/videorenderer.c index 290864b6337..aa870da77e9 100644 --- a/dlls/quartz/videorenderer.c +++ b/dlls/quartz/videorenderer.c @@ -678,7 +678,8 @@ static ULONG WINAPI VideoRendererInner_Release(IUnknown * iface) { IPin *pConnectedTo; - DestroyWindow(This->hWnd); + if (This->hWnd) + SendMessageW(This->hWnd, WM_CLOSE, 0, 0); PostThreadMessageA(This->ThreadID, WM_QUIT, 0, 0); WaitForSingleObject(This->hThread, INFINITE); CloseHandle(This->hThread);