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
bec545ae
Commit
bec545ae
authored
Oct 28, 2000
by
Francois Gouget
Committed by
Alexandre Julliard
Oct 28, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return a more plausible value for MinimumApplicationAddress.
parent
a5b696b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
cpu.c
misc/cpu.c
+5
-6
No files found.
misc/cpu.c
View file @
bec545ae
...
...
@@ -9,7 +9,6 @@
#include <string.h>
#include <stdio.h>
#include "winbase.h"
#include "wine/winbase16.h"
#include "wine/winestring.h"
#include "winreg.h"
#include "global.h"
...
...
@@ -59,8 +58,8 @@ VOID WINAPI GetSystemInfo(
cachedsi
.
u
.
s
.
wProcessorArchitecture
=
PROCESSOR_ARCHITECTURE_INTEL
;
cachedsi
.
dwPageSize
=
VIRTUAL_GetPageSize
();
/* FIXME:
better values for the two entries bel
ow... */
cachedsi
.
lpMinimumApplicationAddress
=
(
void
*
)
0x
4000
0000
;
/* FIXME:
the two entries below should be computed someh
ow... */
cachedsi
.
lpMinimumApplicationAddress
=
(
void
*
)
0x
0001
0000
;
cachedsi
.
lpMaximumApplicationAddress
=
(
void
*
)
0x7FFFFFFF
;
cachedsi
.
dwActiveProcessorMask
=
1
;
cachedsi
.
dwNumberOfProcessors
=
1
;
...
...
@@ -75,7 +74,7 @@ VOID WINAPI GetSystemInfo(
/* Hmm, reasonable processor feature defaults? */
/* Create this registry key for all systems */
if
(
RegCreateKey
16
(
HKEY_LOCAL_MACHINE
,
"HARDWARE
\\
DESCRIPTION
\\
System
\\
CentralProcessor"
,
&
hkey
)
!=
ERROR_SUCCESS
)
{
if
(
RegCreateKey
A
(
HKEY_LOCAL_MACHINE
,
"HARDWARE
\\
DESCRIPTION
\\
System
\\
CentralProcessor"
,
&
hkey
)
!=
ERROR_SUCCESS
)
{
WARN
(
"Unable to register CPU information
\n
"
);
}
...
...
@@ -181,7 +180,7 @@ VOID WINAPI GetSystemInfo(
sprintf
(
buf
,
"%d"
,
x
);
if
(
xhkey
)
RegCloseKey
(
xhkey
);
RegCreateKey
16
(
hkey
,
buf
,
&
xhkey
);
RegCreateKey
A
(
hkey
,
buf
,
&
xhkey
);
}
if
(
!
strncasecmp
(
line
,
"stepping"
,
strlen
(
"stepping"
)))
{
int
x
;
...
...
@@ -203,7 +202,7 @@ VOID WINAPI GetSystemInfo(
#else
/* linux */
/* FIXME: how do we do this on other systems? */
RegCreateKey
16
(
hkey
,
"0"
,
&
xhkey
);
RegCreateKey
A
(
hkey
,
"0"
,
&
xhkey
);
RegSetValueExA
(
xhkey
,
"Identifier"
,
0
,
REG_SZ
,
"CPU 386"
,
strlen
(
"CPU 386"
));
#endif
/* !linux */
if
(
xhkey
)
...
...
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