Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yoann Laissus
wine
Commits
bec545ae
Commit
bec545ae
authored
24 years ago
by
Francois Gouget
Committed by
Alexandre Julliard
24 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Return a more plausible value for MinimumApplicationAddress.
parent
a5b696b6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
misc/cpu.c
+5
-6
5 additions, 6 deletions
misc/cpu.c
with
5 additions
and
6 deletions
misc/cpu.c
+
5
−
6
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 below... */
cachedsi
.
lpMinimumApplicationAddress
=
(
void
*
)
0x
4
0000000
;
/* FIXME: the two entries below
should be computed somehow
... */
cachedsi
.
lpMinimumApplicationAddress
=
(
void
*
)
0x000
1
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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment