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>
This commit is contained in:
Zebediah Figura 2019-10-02 22:01:07 -05:00 committed by Alexandre Julliard
parent 5994c8cc85
commit 428c5b28e3
1 changed files with 1 additions and 1 deletions

View File

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