msi: Check the cabinet's full path for existence, not just the cabinet name.

This commit is contained in:
James Hawkins 2007-11-19 12:51:34 -06:00 committed by Alexandre Julliard
parent 49c0bd5dd5
commit 075e84bd90
1 changed files with 2 additions and 2 deletions

View File

@ -639,9 +639,9 @@ static UINT ready_media(MSIPACKAGE *package, MSIFILE *file, struct media_info *m
if (file->IsCompressed &&
mi->cabinet && mi->cabinet[0] != '#' &&
GetFileAttributesW(mi->cabinet) == INVALID_FILE_ATTRIBUTES)
GetFileAttributesW(mi->source) == INVALID_FILE_ATTRIBUTES)
{
ERR("Cabinet not found: %s\n", debugstr_w(mi->cabinet));
ERR("Cabinet not found: %s\n", debugstr_w(mi->source));
return ERROR_INSTALL_FAILURE;
}