mirror of
https://github.com/reactos/reactos.git
synced 2026-06-02 17:31:23 +08:00
[WINESYNC] 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> wine commit id c7f323107b3b956d206d8d0ee28851d60f19841c by Hans Leidekker <hans@codeweavers.com>
This commit is contained in:
@@ -1645,7 +1645,7 @@ UINT ACTION_RemoveFiles( MSIPACKAGE *package )
|
||||
else
|
||||
{
|
||||
MSIFOLDER *folder = msi_get_loaded_folder( package, comp->Directory );
|
||||
remove_folder( folder );
|
||||
if (folder) remove_folder( folder );
|
||||
}
|
||||
}
|
||||
return ERROR_SUCCESS;
|
||||
|
||||
Reference in New Issue
Block a user