comdlg32: Detach file dialog data after child windows were destroyed.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2018-03-20 10:37:48 +03:00 committed by Alexandre Julliard
parent 38898e939c
commit b8d1e929e7
1 changed files with 5 additions and 1 deletions

View File

@ -1331,9 +1331,13 @@ INT_PTR CALLBACK FileOpenDlgProc95(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM l
SendDlgItemMessageW(hwnd, IDC_TOOLBARPLACES, TB_SETIMAGELIST, 0, 0);
ImageList_Destroy(himl);
}
RemovePropW(hwnd, filedlg_info_propnameW);
return FALSE;
}
case WM_NCDESTROY:
RemovePropW(hwnd, filedlg_info_propnameW);
return 0;
case WM_NOTIFY:
{
LPNMHDR lpnmh = (LPNMHDR)lParam;