msi: Avoid a crash in RemoveFiles if the component directory is invalid.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46907
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hans Leidekker 2019-03-25 21:12:04 +01:00 committed by Alexandre Julliard
parent e4b2b82e6c
commit c7f323107b
1 changed files with 1 additions and 1 deletions

View File

@ -1645,7 +1645,7 @@ UINT ACTION_RemoveFiles( MSIPACKAGE *package )
else else
{ {
MSIFOLDER *folder = msi_get_loaded_folder( package, comp->Directory ); MSIFOLDER *folder = msi_get_loaded_folder( package, comp->Directory );
remove_folder( folder ); if (folder) remove_folder( folder );
} }
} }
return ERROR_SUCCESS; return ERROR_SUCCESS;