http://bugs.winehq.org/show_bug.cgi?id=28443
Summary: MsiGetFileVersion fails when run on TrueType/OpenType font files Product: Wine Version: 1.3.28 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: msi AssignedTo: wine-bugs@winehq.org ReportedBy: sam@robots.org.uk
Created an attachment (id=36468) --> (http://bugs.winehq.org/attachment.cgi?id=36468) vertest.tar.gz
When run on Windows, the attached test case prints:
$ '\leela\sam\src\vertest\vertest' '\leela\sam\src\vertest\vollkorn.otf' 1.800.0.0
When run under Wine, the call to MsiGetFileVersion fails:
$ WINEDEBUG=+msi wine vertest.exe vollkorn.otf trace:msi:MsiGetFileVersionW L"Vollkorn.otf" 0x130248 1024 (nil) 0 MsiGetFileVersionA error: 1
N.B., ERROR_INVALID_FUNCTION (1) is not listed as a valid return code for MsiGetFileVersion http://msdn.microsoft.com/en-us/library/aa370122(v=vs.85).aspx.
This causes WiX to create faulty MSI files, since it is unable to correctly extract version information from TrueType/OpenType font files.