urlmon: Create one notif window per thread.
Alexandre Julliard
julliard at winehq.org
Fri Mar 16 06:01:39 CDT 2007
Jacek Caban <jacek at codeweavers.com> writes:
> static HWND get_notif_hwnd(void)
> {
> + thread_data_t *thread_data = get_thread_data(TRUE);
> +
> static ATOM wnd_class = 0;
> - HWND hwnd;
>
> static const WCHAR wszURLMonikerNotificationWindow[] =
> {'U','R','L',' ','M','o','n','i','k','e','r',' ',
> 'N','o','t','i','f','i','c','a','t','i','o','n',' ','W','i','n','d','o','w',0};
>
> + if(thread_data->notif_hwnd)
> + return thread_data->notif_hwnd;
This won't work, since the window is stored in the binding and
destroyed when the binding is freed. And if you don't have the binding
destroy it, then the window is never destroyed and this causes
problems if the dll is unloaded.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list