From 075e84bd90bc5dae9cb050d110281ce8ea1b7256 Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Mon, 19 Nov 2007 12:51:34 -0600 Subject: [PATCH] msi: Check the cabinet's full path for existence, not just the cabinet name. --- dlls/msi/files.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/msi/files.c b/dlls/msi/files.c index 94510c5ed0f..c50e4200a4b 100644 --- a/dlls/msi/files.c +++ b/dlls/msi/files.c @@ -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; }