Commit 075e84bd authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

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

parent 49c0bd5d
...@@ -639,9 +639,9 @@ static UINT ready_media(MSIPACKAGE *package, MSIFILE *file, struct media_info *m ...@@ -639,9 +639,9 @@ static UINT ready_media(MSIPACKAGE *package, MSIFILE *file, struct media_info *m
if (file->IsCompressed && if (file->IsCompressed &&
mi->cabinet && mi->cabinet[0] != '#' && 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; return ERROR_INSTALL_FAILURE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment