msi: The assembly file version field is optional.

This commit is contained in:
Hans Leidekker 2009-05-29 15:13:57 +02:00 committed by Alexandre Julliard
parent 1fc61f0838
commit 7d837b9f82

View file

@ -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;
}