[PATCH 1/2] strmbase: Do not notify the parent of the window's destruction.

Dmitry Timoshkov dmitry at baikal.ru
Thu Jan 9 07:32:10 CST 2020


Gabriel Ivăncescu <gabrielopcode at gmail.com> wrote:

> +    case WM_CLOSE:
> +        /* Some applications like Media Player Classic deadlock when the parent,
> +           which is on a different thread, is notified before the destruction.
> +           Windows also doesn't notify it, despite not having the style prior. */
> +        SetWindowLongW(hwnd, GWL_EXSTYLE, GetWindowLongW(hwnd, GWL_EXSTYLE) | WS_EX_NOPARENTNOTIFY);
> +        break;
>      }

This is most likely wrong way of fixing this: if it's your own window
then it should have correct styles from the start, if it's a foreign
window then this requires a test case since it may break things.

-- 
Dmitry.



More information about the wine-devel mailing list