Module: wine Branch: refs/heads/master Commit: 04a086ad657f5188e7c8d5884b2d7abef134d997 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=04a086ad657f5188e7c8d588...
Author: Mike McCormack mike@codeweavers.com Date: Sat Dec 31 13:14:34 2005 +0100
msi: Define the property "Intel" if we're running on an Intel processor.
---
dlls/msi/package.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/dlls/msi/package.c b/dlls/msi/package.c index 96bf46f..e2ba8e7 100644 --- a/dlls/msi/package.c +++ b/dlls/msi/package.c @@ -228,6 +228,8 @@ static VOID set_installer_properties(MSI static const WCHAR szScreenY[] = {'S','c','r','e','e','n','Y',0}; static const WCHAR szColorBits[] = {'C','o','l','o','r','B','i','t','s',0}; static const WCHAR szScreenFormat[] = {'%','d',0}; + static const WCHAR szIntel[] = { 'I','n','t','e','l',0 }; + SYSTEM_INFO sys_info;
/* * Other things that probably should be set: @@ -353,6 +355,13 @@ static VOID set_installer_properties(MSI sprintfW( bufstr, szFormat2, MSI_MAJORVERSION, MSI_MINORVERSION); MSI_SetPropertyW( package, szVersionMsi, bufstr );
+ GetSystemInfo( &sys_info ); + if (sys_info.u.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_INTEL) + { + sprintfW( bufstr, szScreenFormat, sys_info.wProcessorLevel ); + MSI_SetPropertyW( package, szIntel, bufstr ); + } + /* Screen properties. */ dc = GetDC(0); sprintfW( bufstr, szScreenFormat, GetDeviceCaps( dc, HORZRES ) );