https://git.reactos.org/?p=reactos.git;a=commitdiff;h=af2abfcb7a03d7aeb3001…
commit af2abfcb7a03d7aeb3001d641ef41130c3a19116
Author: winesync <ros-dev(a)reactos.org>
AuthorDate: Sun Mar 13 01:19:31 2022 +0100
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Sun Mar 20 19:28:15 2022 +0100
[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(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id c7f323107b3b956d206d8d0ee28851d60f19841c by Hans Leidekker
<hans(a)codeweavers.com>
---
dll/win32/msi/files.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dll/win32/msi/files.c b/dll/win32/msi/files.c
index 92a98f1eca0..68b8954f57f 100644
--- a/dll/win32/msi/files.c
+++ b/dll/win32/msi/files.c
@@ -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;