[PATCH 3/7] quartz: Make sure video window is actually destroyed
Maarten Lankhorst
m.b.lankhorst at gmail.com
Fri Dec 3 07:38:27 CST 2010
Since DestroyWindow was not called from the window thread, DestroyWindow was never run
---
dlls/quartz/videorenderer.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/quartz/videorenderer.c b/dlls/quartz/videorenderer.c
index 290864b..aa870da 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);
--
1.7.1
More information about the wine-patches
mailing list