[pkg-wine-party] [wine] 64/164: kernel32: Add a stub for GetSystemFileCacheSize.

Michael Gilbert mgilbert at moszumanska.debian.org
Sun Oct 19 19:58:24 UTC 2014


This is an automated email from the git hooks/post-receive script.

mgilbert pushed a commit to branch master
in repository wine.

commit 2a5299ea32a473dd6341ab6a1e55aa1634eaa677
Author: Austin English <austinenglish at gmail.com>
Date:   Tue Oct 7 14:34:51 2014 -0500

    kernel32: Add a stub for GetSystemFileCacheSize.
---
 .../api-ms-win-core-memory-l1-1-1.spec                             | 2 +-
 dlls/kernel32/heap.c                                               | 7 +++++++
 dlls/kernel32/kernel32.spec                                        | 1 +
 3 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/dlls/api-ms-win-core-memory-l1-1-1/api-ms-win-core-memory-l1-1-1.spec b/dlls/api-ms-win-core-memory-l1-1-1/api-ms-win-core-memory-l1-1-1.spec
index 891582a..f0cd496 100644
--- a/dlls/api-ms-win-core-memory-l1-1-1/api-ms-win-core-memory-l1-1-1.spec
+++ b/dlls/api-ms-win-core-memory-l1-1-1/api-ms-win-core-memory-l1-1-1.spec
@@ -5,7 +5,7 @@
 @ stdcall FlushViewOfFile(ptr long) kernel32.FlushViewOfFile
 @ stub GetLargePageMinimum
 @ stub GetProcessWorkingSetSizeEx
-@ stub GetSystemFileCacheSize
+@ stdcall GetSystemFileCacheSize(ptr ptr ptr) kernel32.GetSystemFileCacheSize
 @ stdcall GetWriteWatch(long ptr long ptr ptr ptr) kernel32.GetWriteWatch
 @ stdcall MapViewOfFile(long long long long long) kernel32.MapViewOfFile
 @ stdcall MapViewOfFileEx(long long long long long ptr) kernel32.MapViewOfFileEx
diff --git a/dlls/kernel32/heap.c b/dlls/kernel32/heap.c
index db1b401..5a16a12 100644
--- a/dlls/kernel32/heap.c
+++ b/dlls/kernel32/heap.c
@@ -1447,3 +1447,10 @@ VOID WINAPI GlobalMemoryStatus( LPMEMORYSTATUS lpBuffer )
           lpBuffer->dwAvailPhys, lpBuffer->dwTotalPageFile, lpBuffer->dwAvailPageFile,
           lpBuffer->dwTotalVirtual, lpBuffer->dwAvailVirtual );
 }
+
+BOOL WINAPI GetSystemFileCacheSize(PSIZE_T mincache, PSIZE_T maxcache, PDWORD flags)
+{
+    FIXME("stub: %p %p %p\n", mincache, maxcache, flags);
+    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+    return FALSE;
+}
diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec
index 2de2119..e82a64d 100644
--- a/dlls/kernel32/kernel32.spec
+++ b/dlls/kernel32/kernel32.spec
@@ -637,6 +637,7 @@
 @ stdcall GetStringTypeExA(long long str long ptr)
 @ stdcall GetStringTypeExW(long long wstr long ptr)
 @ stdcall GetStringTypeW(long wstr long ptr)
+@ stdcall GetSystemFileCacheSize(ptr ptr ptr)
 @ stdcall GetSystemDefaultLCID()
 @ stdcall GetSystemDefaultLangID()
 @ stdcall GetSystemDefaultLocaleName(ptr long)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wine/wine.git



More information about the pkg-wine-party mailing list