Commit 428c5b28 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

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: 's avatarZebediah Figura <z.figura12@gmail.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 5994c8cc
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment