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:
parent
5994c8cc85
commit
428c5b28e3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue