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
6838b462
Commit
6838b462
authored
Dec 14, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineboot: Set the correct architecture in the process identifier variable.
parent
e8a766b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
wineboot.c
programs/wineboot/wineboot.c
+8
-12
No files found.
programs/wineboot/wineboot.c
View file @
6838b462
...
@@ -268,12 +268,13 @@ static void create_environment_registry_keys( void )
...
@@ -268,12 +268,13 @@ static void create_environment_registry_keys( void )
static
const
WCHAR
ProcRevW
[]
=
{
'P'
,
'R'
,
'O'
,
'C'
,
'E'
,
'S'
,
'S'
,
'O'
,
'R'
,
'_'
,
'R'
,
'E'
,
'V'
,
'I'
,
'S'
,
'I'
,
'O'
,
'N'
,
0
};
static
const
WCHAR
ProcRevW
[]
=
{
'P'
,
'R'
,
'O'
,
'C'
,
'E'
,
'S'
,
'S'
,
'O'
,
'R'
,
'_'
,
'R'
,
'E'
,
'V'
,
'I'
,
'S'
,
'I'
,
'O'
,
'N'
,
0
};
static
const
WCHAR
PercentDW
[]
=
{
'%'
,
'd'
,
0
};
static
const
WCHAR
PercentDW
[]
=
{
'%'
,
'd'
,
0
};
static
const
WCHAR
Percent04XW
[]
=
{
'%'
,
'0'
,
'4'
,
'x'
,
0
};
static
const
WCHAR
Percent04XW
[]
=
{
'%'
,
'0'
,
'4'
,
'x'
,
0
};
static
const
WCHAR
IntelCpuDescrW
[]
=
{
'
x'
,
'8'
,
'6
'
,
' '
,
'F'
,
'a'
,
'm'
,
'i'
,
'l'
,
'y'
,
' '
,
'%'
,
'd'
,
' '
,
'M'
,
'o'
,
'd'
,
'e'
,
'l'
,
' '
,
'%'
,
'd'
,
static
const
WCHAR
IntelCpuDescrW
[]
=
{
'
%'
,
's
'
,
' '
,
'F'
,
'a'
,
'm'
,
'i'
,
'l'
,
'y'
,
' '
,
'%'
,
'd'
,
' '
,
'M'
,
'o'
,
'd'
,
'e'
,
'l'
,
' '
,
'%'
,
'd'
,
' '
,
'S'
,
't'
,
'e'
,
'p'
,
'p'
,
'i'
,
'n'
,
'g'
,
' '
,
'%'
,
'd'
,
','
,
' '
,
'G'
,
'e'
,
'n'
,
'u'
,
'i'
,
'n'
,
'e'
,
'I'
,
'n'
,
't'
,
'e'
,
'l'
,
0
};
' '
,
'S'
,
't'
,
'e'
,
'p'
,
'p'
,
'i'
,
'n'
,
'g'
,
' '
,
'%'
,
'd'
,
','
,
' '
,
'G'
,
'e'
,
'n'
,
'u'
,
'i'
,
'n'
,
'e'
,
'I'
,
'n'
,
't'
,
'e'
,
'l'
,
0
};
HKEY
env_key
;
HKEY
env_key
;
SYSTEM_CPU_INFORMATION
sci
;
SYSTEM_CPU_INFORMATION
sci
;
WCHAR
buffer
[
60
];
WCHAR
buffer
[
60
];
const
WCHAR
*
arch
;
NtQuerySystemInformation
(
SystemCpuInformation
,
&
sci
,
sizeof
(
sci
),
NULL
);
NtQuerySystemInformation
(
SystemCpuInformation
,
&
sci
,
sizeof
(
sci
),
NULL
);
...
@@ -284,20 +285,15 @@ static void create_environment_registry_keys( void )
...
@@ -284,20 +285,15 @@ static void create_environment_registry_keys( void )
switch
(
sci
.
Architecture
)
switch
(
sci
.
Architecture
)
{
{
case
PROCESSOR_ARCHITECTURE_AMD64
:
case
PROCESSOR_ARCHITECTURE_AMD64
:
arch
=
AMD64W
;
break
;
set_reg_value
(
env_key
,
ProcArchW
,
AMD64W
);
case
PROCESSOR_ARCHITECTURE_IA64
:
arch
=
IA64W
;
break
;
break
;
default:
case
PROCESSOR_ARCHITECTURE_IA64
:
case
PROCESSOR_ARCHITECTURE_INTEL
:
arch
=
x86W
;
break
;
set_reg_value
(
env_key
,
ProcArchW
,
IA64W
);
break
;
case
PROCESSOR_ARCHITECTURE_INTEL
:
default:
set_reg_value
(
env_key
,
ProcArchW
,
x86W
);
break
;
}
}
set_reg_value
(
env_key
,
ProcArchW
,
arch
);
/* TODO: currently hardcoded Intel, add different processors */
/* TODO: currently hardcoded Intel, add different processors */
sprintfW
(
buffer
,
IntelCpuDescrW
,
sci
.
Level
,
HIBYTE
(
sci
.
Revision
),
LOBYTE
(
sci
.
Revision
)
);
sprintfW
(
buffer
,
IntelCpuDescrW
,
arch
,
sci
.
Level
,
HIBYTE
(
sci
.
Revision
),
LOBYTE
(
sci
.
Revision
)
);
set_reg_value
(
env_key
,
ProcIdW
,
buffer
);
set_reg_value
(
env_key
,
ProcIdW
,
buffer
);
sprintfW
(
buffer
,
PercentDW
,
sci
.
Level
);
sprintfW
(
buffer
,
PercentDW
,
sci
.
Level
);
...
...
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