Hans Leidekker : msi: The assembly file version field is optional.

Alexandre Julliard julliard at winehq.org
Fri May 29 09:15:52 CDT 2009


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

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Fri May 29 15:13:57 2009 +0200

msi: The assembly file version field is optional.

---

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

diff --git a/dlls/msi/action.c b/dlls/msi/action.c
index 948cf4a..c824904 100644
--- a/dlls/msi/action.c
+++ b/dlls/msi/action.c
@@ -6076,7 +6076,7 @@ static UINT load_assembly(MSIRECORD *rec, LPVOID param)
         /* FIXME: we should probably check the manifest file here */
 
         if (!MsiGetFileVersionW(assembly->file->TargetPath, version, &size, NULL, NULL) &&
-            strcmpW(version, assembly->file->Version) >= 0)
+            (!assembly->file->Version || strcmpW(version, assembly->file->Version) >= 0))
         {
             assembly->installed = TRUE;
         }




More information about the wine-cvs mailing list