Rob Shearman : msi: Only use the long name for the file source if the file has one.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Jun 22 07:35:39 CDT 2007


Module: wine
Branch: master
Commit: f533159bb684cec693a6b4a62f4b44c46b4846ba
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f533159bb684cec693a6b4a62f4b44c46b4846ba

Author: Rob Shearman <rob at codeweavers.com>
Date:   Thu Jun 21 17:19:57 2007 +0100

msi: Only use the long name for the file source if the file has one.

---

 dlls/msi/files.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/msi/files.c b/dlls/msi/files.c
index 42f954c..98f20d6 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);




More information about the wine-cvs mailing list