Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
04a086ad
Commit
04a086ad
authored
Dec 31, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Dec 31, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Define the property "Intel" if we're running on an Intel processor.
parent
f24a9e2a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
package.c
dlls/msi/package.c
+9
-0
No files found.
dlls/msi/package.c
View file @
04a086ad
...
...
@@ -228,6 +228,8 @@ static VOID set_installer_properties(MSIPACKAGE *package)
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(MSIPACKAGE *package)
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
)
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment