Hans Leidekker : msi: Set the MsiAMD64 and Msix64 properties on 64-bit.
Module: wine Branch: master Commit: 3730300a298fa05ab04248e41a21ff579517bc09 URL: http://source.winehq.org/git/wine.git/?a=commit;h=3730300a298fa05ab04248e41a... Author: Hans Leidekker <hans(a)codeweavers.com> Date: Thu Sep 2 13:20:54 2010 +0200 msi: Set the MsiAMD64 and Msix64 properties on 64-bit. --- dlls/msi/package.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/dlls/msi/package.c b/dlls/msi/package.c index 323968c..bb04ab0 100644 --- a/dlls/msi/package.c +++ b/dlls/msi/package.c @@ -684,6 +684,8 @@ static VOID set_installer_properties(MSIPACKAGE *package) static const WCHAR szColorBits[] = {'C','o','l','o','r','B','i','t','s',0}; static const WCHAR szIntFormat[] = {'%','d',0}; static const WCHAR szIntel[] = { 'I','n','t','e','l',0 }; + static const WCHAR szMsiAMD64[] = { 'M','s','i','A','M','D','6','4',0 }; + static const WCHAR szMsix64[] = { 'M','s','i','x','6','4',0 }; static const WCHAR szUserInfo[] = { 'S','O','F','T','W','A','R','E','\\', 'M','i','c','r','o','s','o','f','t','\\', @@ -845,6 +847,12 @@ static VOID set_installer_properties(MSIPACKAGE *package) sprintfW( bufstr, szIntFormat, sys_info.wProcessorLevel ); msi_set_property( package->db, szIntel, bufstr ); } + else if (sys_info.u.s.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_AMD64) + { + sprintfW( bufstr, szIntFormat, sys_info.wProcessorLevel ); + msi_set_property( package->db, szMsiAMD64, bufstr ); + msi_set_property( package->db, szMsix64, bufstr ); + } /* Screen properties. */ dc = GetDC(0);
participants (1)
-
Alexandre Julliard