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
cacbe216
Commit
cacbe216
authored
Apr 02, 2002
by
Andreas Mohr
Committed by
Alexandre Julliard
Apr 02, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add return traces to GlobalMemoryStatus, GetSystemInfo and fixme in
GetSystemInfo.
parent
03f4e223
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
global.c
memory/global.c
+6
-0
cpu.c
misc/cpu.c
+7
-2
No files found.
memory/global.c
View file @
cacbe216
...
...
@@ -1600,6 +1600,12 @@ VOID WINAPI GlobalMemoryStatus(
if
(
lpmem
->
dwAvailPageFile
==
0
)
lpmem
->
dwAvailPageFile
++
;
TRACE
(
"<-- LPMEMORYSTATUS: dwLength %ld, dwMemoryLoad %ld, dwTotalPhys %ld, dwAvailPhys %ld,"
" dwTotalPageFile %ld, dwAvailPageFile %ld, dwTotalVirtual %ld, dwAvailVirtual %ld
\n
"
,
lpmem
->
dwLength
,
lpmem
->
dwMemoryLoad
,
lpmem
->
dwTotalPhys
,
lpmem
->
dwAvailPhys
,
lpmem
->
dwTotalPageFile
,
lpmem
->
dwAvailPageFile
,
lpmem
->
dwTotalVirtual
,
lpmem
->
dwAvailVirtual
);
}
/***********************************************************************
...
...
misc/cpu.c
View file @
cacbe216
...
...
@@ -237,8 +237,7 @@ VOID WINAPI GetSystemInfo(
}
memcpy
(
si
,
&
cachedsi
,
sizeof
(
*
si
));
#else
/* linux */
/* FIXME: how do we do this on other systems? */
FIXME
(
"not yet supported on this system
\n
"
);
RegCreateKeyA
(
hkey
,
"0"
,
&
xhkey
);
RegSetValueExA
(
xhkey
,
"Identifier"
,
0
,
REG_SZ
,
"CPU 386"
,
strlen
(
"CPU 386"
));
#endif
/* !linux */
...
...
@@ -246,6 +245,12 @@ VOID WINAPI GetSystemInfo(
RegCloseKey
(
xhkey
);
if
(
hkey
)
RegCloseKey
(
hkey
);
TRACE
(
"<- CPU arch %d, res'd %d, pagesize %ld, minappaddr %p, maxappaddr %p,"
" act.cpumask %08lx, numcpus %ld, CPU type %ld, allocgran. %ld, CPU level %d, CPU rev %d
\n
"
,
si
->
u
.
s
.
wProcessorArchitecture
,
si
->
u
.
s
.
wReserved
,
si
->
dwPageSize
,
si
->
lpMinimumApplicationAddress
,
si
->
lpMaximumApplicationAddress
,
si
->
dwActiveProcessorMask
,
si
->
dwNumberOfProcessors
,
si
->
dwProcessorType
,
si
->
dwAllocationGranularity
,
si
->
wProcessorLevel
,
si
->
wProcessorRevision
);
}
...
...
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