From f533159bb684cec693a6b4a62f4b44c46b4846ba Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Thu, 21 Jun 2007 17:19:57 +0100 Subject: [PATCH] msi: Only use the long name for the file source if the file has one. --- dlls/msi/files.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/msi/files.c b/dlls/msi/files.c index 42f954cc934..98f20d68d4d 100644 --- a/dlls/msi/files.c +++ b/dlls/msi/files.c @@ -467,7 +467,8 @@ static VOID set_file_source(MSIPACKAGE* package, MSIFILE* file, LPCWSTR path) LPWSTR p, path; p = resolve_folder(package, file->Component->Directory, TRUE, FALSE, TRUE, NULL); path = build_directory_name(2, p, file->ShortName); - if (INVALID_FILE_ATTRIBUTES == GetFileAttributesW( path )) + if (file->LongName && + INVALID_FILE_ATTRIBUTES == GetFileAttributesW( path )) { msi_free(path); path = build_directory_name(2, p, file->LongName);