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:
parent
e4b2b82e6c
commit
c7f323107b
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue