Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
8ac60d56
Commit
8ac60d56
authored
Aug 15, 2010
by
Konrad Wartke
Committed by
Alexandre Julliard
Aug 16, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineboot: Added more architectures in create_enviroment_registry_keys.
parent
ab575718
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
wineboot.c
programs/wineboot/wineboot.c
+15
-2
No files found.
programs/wineboot/wineboot.c
View file @
8ac60d56
...
...
@@ -261,6 +261,8 @@ static void create_environment_registry_keys( void )
static
const
WCHAR
NumProcW
[]
=
{
'N'
,
'U'
,
'M'
,
'B'
,
'E'
,
'R'
,
'_'
,
'O'
,
'F'
,
'_'
,
'P'
,
'R'
,
'O'
,
'C'
,
'E'
,
'S'
,
'S'
,
'O'
,
'R'
,
'S'
,
0
};
static
const
WCHAR
ProcArchW
[]
=
{
'P'
,
'R'
,
'O'
,
'C'
,
'E'
,
'S'
,
'S'
,
'O'
,
'R'
,
'_'
,
'A'
,
'R'
,
'C'
,
'H'
,
'I'
,
'T'
,
'E'
,
'C'
,
'T'
,
'U'
,
'R'
,
'E'
,
0
};
static
const
WCHAR
x86W
[]
=
{
'x'
,
'8'
,
'6'
,
0
};
static
const
WCHAR
IA64W
[]
=
{
'I'
,
'A'
,
'6'
,
'4'
,
0
};
static
const
WCHAR
AMD64W
[]
=
{
'A'
,
'M'
,
'D'
,
'6'
,
'4'
,
0
};
static
const
WCHAR
ProcIdW
[]
=
{
'P'
,
'R'
,
'O'
,
'C'
,
'E'
,
'S'
,
'S'
,
'O'
,
'R'
,
'_'
,
'I'
,
'D'
,
'E'
,
'N'
,
'T'
,
'I'
,
'F'
,
'I'
,
'E'
,
'R'
,
0
};
static
const
WCHAR
ProcLvlW
[]
=
{
'P'
,
'R'
,
'O'
,
'C'
,
'E'
,
'S'
,
'S'
,
'O'
,
'R'
,
'_'
,
'L'
,
'E'
,
'V'
,
'E'
,
'L'
,
0
};
static
const
WCHAR
ProcRevW
[]
=
{
'P'
,
'R'
,
'O'
,
'C'
,
'E'
,
'S'
,
'S'
,
'O'
,
'R'
,
'_'
,
'R'
,
'E'
,
'V'
,
'I'
,
'S'
,
'I'
,
'O'
,
'N'
,
0
};
...
...
@@ -280,8 +282,19 @@ static void create_environment_registry_keys( void )
sprintfW
(
buffer
,
PercentDW
,
NtCurrentTeb
()
->
Peb
->
NumberOfProcessors
);
set_reg_value
(
env_key
,
NumProcW
,
buffer
);
/* TODO: currently hardcoded x86, add different processors */
set_reg_value
(
env_key
,
ProcArchW
,
x86W
);
switch
(
sci
.
Architecture
)
{
case
PROCESSOR_ARCHITECTURE_AMD64
:
set_reg_value
(
env_key
,
ProcArchW
,
AMD64W
);
break
;
case
PROCESSOR_ARCHITECTURE_IA64
:
set_reg_value
(
env_key
,
ProcArchW
,
IA64W
);
break
;
case
PROCESSOR_ARCHITECTURE_INTEL
:
default:
set_reg_value
(
env_key
,
ProcArchW
,
x86W
);
break
;
}
/* TODO: currently hardcoded Intel, add different processors */
sprintfW
(
buffer
,
IntelCpuDescrW
,
sci
.
Level
,
HIBYTE
(
sci
.
Revision
),
LOBYTE
(
sci
.
Revision
)
);
...
...
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