[3/5] msi: Set the MsiAMD64 and Msix64 properties on 64-bit.

Hans Leidekker hans at codeweavers.com
Thu Sep 2 06:20:54 CDT 2010


Fixes http://bugs.winehq.org/show_bug.cgi?id=24187
---
 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);
-- 
1.7.0.4







More information about the wine-patches mailing list