[PATCH 2/5] strmbase: Send WM_CLOSE instead of calling DestroyWindow() directly.
Zebediah Figura
z.figura12 at gmail.com
Wed Oct 2 22:01:07 CDT 2019
We are not guaranteed to destroy the filter on the same thread it was created
on.
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
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 bf7a7a3c27b..b7c0bae47b2 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;
--
2.23.0
More information about the wine-devel
mailing list