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
1 changed files with 1 additions and 1 deletions

View File

@ -6076,7 +6076,7 @@ static UINT load_assembly(MSIRECORD *rec, LPVOID param)
/* FIXME: we should probably check the manifest file here */ /* FIXME: we should probably check the manifest file here */
if (!MsiGetFileVersionW(assembly->file->TargetPath, version, &size, NULL, NULL) && 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; assembly->installed = TRUE;
} }