From 70cd6bfbbd85e9caab0ec9e01314d605588eb109 Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Tue, 20 May 2008 00:35:42 -0500 Subject: [PATCH] msi: Check that the file key is valid before installing the assembly. --- dlls/msi/action.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/msi/action.c b/dlls/msi/action.c index 0e931a1f6c..02beb0cfb4 100644 --- a/dlls/msi/action.c +++ b/dlls/msi/action.c @@ -5663,6 +5663,11 @@ static UINT ITERATE_PublishAssembly( MSIRECORD *rec, LPVOID param ) /* FIXME: extract all files belonging to this component */ file = msi_find_file(package, comp->KeyPath); + if (!file) + { + ERR("File %s not found\n", debugstr_w(comp->KeyPath)); + return ERROR_FUNCTION_FAILED; + } GetTempPathW(MAX_PATH, path); -- 2.32.0.93.g670b81a890