[SHELL32] Handle WM_CLOSE instead of WM_DESTROY to close the dialog

See issue #4226 for more details.

svn path=/trunk/; revision=46814
This commit is contained in:
Gregor Schneider 2010-04-10 14:58:31 +00:00
parent 6fb8027ffd
commit 7759232bf5

View file

@ -756,7 +756,7 @@ static INT_PTR CALLBACK OpenWithProgrammDlg(HWND hwndDlg, UINT uMsg, WPARAM wPar
break; break;
} }
break; break;
case WM_DESTROY: case WM_CLOSE:
FreeListItems(hwndDlg); FreeListItems(hwndDlg);
EndDialog(hwndDlg, 0); EndDialog(hwndDlg, 0);
return TRUE; return TRUE;