Maarten Lankhorst : quartz: Make sure video window is actually destroyed.

Alexandre Julliard julliard at winehq.org
Fri Dec 3 09:31:41 CST 2010


Module: wine
Branch: master
Commit: 89161a8ded8bc55be02fdf93336a74dab724d46b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=89161a8ded8bc55be02fdf93336a74dab724d46b

Author: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date:   Fri Dec  3 09:38:10 2010 +0100

quartz: Make sure video window is actually destroyed.

---

 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);




More information about the wine-cvs mailing list