comdlg32: Don't crash if an IShellFolder could not be created.

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alex Henrie 2017-02-14 00:00:48 -07:00 committed by Alexandre Julliard
parent bd1b3c104e
commit e07d20f3f3
1 changed files with 2 additions and 1 deletions

View File

@ -2951,7 +2951,8 @@ static void FILEDLG95_SHELL_Clean(HWND hwnd)
IShellView_DestroyViewWindow(fodInfos->Shell.FOIShellView);
IShellView_Release(fodInfos->Shell.FOIShellView);
}
IShellFolder_Release(fodInfos->Shell.FOIShellFolder);
if (fodInfos->Shell.FOIShellFolder)
IShellFolder_Release(fodInfos->Shell.FOIShellFolder);
IShellBrowser_Release(fodInfos->Shell.FOIShellBrowser);
if (fodInfos->Shell.FOIDataObject)
IDataObject_Release(fodInfos->Shell.FOIDataObject);