Re: urlmon: Create one notif window per thread.
March 16, 2007
11:01 a.m.
Jacek Caban <jacek(a)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(a)winehq.org
7041
Age (days ago)
7041
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard