Module: wine Branch: master Commit: 428c5b28e32a00d2a2662c21304d1ab09d23fcd8 URL: https://source.winehq.org/git/wine.git/?a=commit;h=428c5b28e32a00d2a2662c213...
Author: Zebediah Figura z.figura12@gmail.com Date: Wed Oct 2 22:01:07 2019 -0500
strmbase: Send WM_CLOSE instead of calling DestroyWindow() directly.
We are not guaranteed to destroy the filter on the same thread it was created on.
Signed-off-by: Zebediah Figura z.figura12@gmail.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/strmbase/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/strmbase/window.c b/dlls/strmbase/window.c index bf7a7a3c27..b7c0bae47b 100644 --- a/dlls/strmbase/window.c +++ b/dlls/strmbase/window.c @@ -141,7 +141,7 @@ HRESULT WINAPI BaseWindowImpl_DoneWithWindow(BaseWindow *This) ReleaseDC(This->hWnd, This->hDC); This->hDC = NULL;
- DestroyWindow(This->hWnd); + SendMessageW(This->hWnd, WM_CLOSE, 0, 0); This->hWnd = NULL;
return S_OK;