msi: Check that the file key is valid before installing the assembly.

This commit is contained in:
James Hawkins 2008-05-20 00:35:42 -05:00 committed by Alexandre Julliard
parent ed4e0a08bc
commit 70cd6bfbbd
1 changed files with 5 additions and 0 deletions

View File

@ -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);