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
966827bb
Commit
966827bb
authored
Oct 19, 2015
by
Sebastian Lackner
Committed by
Alexandre Julliard
Oct 20, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Implement stub for GetPhysicallyInstalledSystemMemory.
Signed-off-by:
Sebastian Lackner
<
sebastian@fds-team.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
16a97953
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
3 deletions
+24
-3
api-ms-win-core-sysinfo-l1-2-1.spec
...n-core-sysinfo-l1-2-1/api-ms-win-core-sysinfo-l1-2-1.spec
+1
-1
heap.c
dlls/kernel32/heap.c
+21
-0
kernel32.spec
dlls/kernel32/kernel32.spec
+1
-1
heap.c
dlls/kernel32/tests/heap.c
+1
-1
No files found.
dlls/api-ms-win-core-sysinfo-l1-2-1/api-ms-win-core-sysinfo-l1-2-1.spec
View file @
966827bb
...
...
@@ -7,7 +7,7 @@
@ stdcall GetLogicalProcessorInformationEx(long ptr ptr) kernel32.GetLogicalProcessorInformationEx
@ stdcall GetNativeSystemInfo(ptr) kernel32.GetNativeSystemInfo
@ stub GetOsSafeBootMode
@ st
ub
GetPhysicallyInstalledSystemMemory
@ st
dcall GetPhysicallyInstalledSystemMemory(ptr) kernel32.
GetPhysicallyInstalledSystemMemory
@ stdcall GetProductInfo(long long long long ptr) kernel32.GetProductInfo
@ stdcall GetSystemDirectoryA(ptr long) kernel32.GetSystemDirectoryA
@ stdcall GetSystemDirectoryW(ptr long) kernel32.GetSystemDirectoryW
...
...
dlls/kernel32/heap.c
View file @
966827bb
...
...
@@ -1449,6 +1449,27 @@ VOID WINAPI GlobalMemoryStatus( LPMEMORYSTATUS lpBuffer )
lpBuffer
->
dwTotalVirtual
,
lpBuffer
->
dwAvailVirtual
);
}
/***********************************************************************
* GetPhysicallyInstalledSystemMemory (KERNEL32.@)
*/
BOOL
WINAPI
GetPhysicallyInstalledSystemMemory
(
ULONGLONG
*
total_memory
)
{
MEMORYSTATUSEX
memstatus
;
FIXME
(
"stub: %p
\n
"
,
total_memory
);
if
(
!
total_memory
)
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
FALSE
;
}
memstatus
.
dwLength
=
sizeof
(
memstatus
);
GlobalMemoryStatusEx
(
&
memstatus
);
*
total_memory
=
memstatus
.
ullTotalPhys
/
1024
;
return
TRUE
;
}
BOOL
WINAPI
GetSystemFileCacheSize
(
PSIZE_T
mincache
,
PSIZE_T
maxcache
,
PDWORD
flags
)
{
FIXME
(
"stub: %p %p %p
\n
"
,
mincache
,
maxcache
,
flags
);
...
...
dlls/kernel32/kernel32.spec
View file @
966827bb
...
...
@@ -759,7 +759,7 @@
@ stdcall GetOEMCP()
@ stdcall GetOverlappedResult(long ptr ptr long)
@ stdcall GetUserPreferredUILanguages(long ptr ptr ptr)
# @ stub GetPhysicallyInstalledSystemMemory
@ stdcall GetPhysicallyInstalledSystemMemory(ptr)
@ stdcall GetPriorityClass(long)
@ stdcall GetPrivateProfileIntA(str str long str)
@ stdcall GetPrivateProfileIntW(wstr wstr long wstr)
...
...
dlls/kernel32/tests/heap.c
View file @
966827bb
...
...
@@ -1156,7 +1156,7 @@ static void test_GetPhysicallyInstalledSystemMemory(void)
pGetPhysicallyInstalledSystemMemory
=
(
void
*
)
GetProcAddress
(
kernel32
,
"GetPhysicallyInstalledSystemMemory"
);
if
(
!
pGetPhysicallyInstalledSystemMemory
)
{
skip
(
"GetPhysicallyInstalledSystemMemory is not available
\n
"
);
win_
skip
(
"GetPhysicallyInstalledSystemMemory is not available
\n
"
);
return
;
}
...
...
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