Austin English : kernel32: Add a stub for SetSystemFileCacheSize.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Oct 8 14:09:27 CDT 2014


Module: wine
Branch: master
Commit: 96e920e01f90a2d9c343ad57986f8bf0ad1eb63f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=96e920e01f90a2d9c343ad57986f8bf0ad1eb63f

Author: Austin English <austinenglish at gmail.com>
Date:   Tue Oct  7 14:35:03 2014 -0500

kernel32: Add a stub for SetSystemFileCacheSize.

---

 .../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 f0cd496..5d3eb13 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
@@ -16,7 +16,7 @@
 @ stdcall ReadProcessMemory(long ptr ptr long ptr) kernel32.ReadProcessMemory
 @ stdcall ResetWriteWatch(ptr long) kernel32.ResetWriteWatch
 @ stub SetProcessWorkingSetSizeEx
-@ stub SetSystemFileCacheSize
+@ stdcall SetSystemFileCacheSize(long long long) kernel32.SetSystemFileCacheSize
 @ stdcall UnmapViewOfFile(ptr) kernel32.UnmapViewOfFile
 @ stub UnmapViewOfFileEx
 @ stdcall VirtualAlloc(ptr long long long) kernel32.VirtualAlloc
diff --git a/dlls/kernel32/heap.c b/dlls/kernel32/heap.c
index 5a16a12..9037f8e 100644
--- a/dlls/kernel32/heap.c
+++ b/dlls/kernel32/heap.c
@@ -1454,3 +1454,10 @@ BOOL WINAPI GetSystemFileCacheSize(PSIZE_T mincache, PSIZE_T maxcache, PDWORD fl
     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
     return FALSE;
 }
+
+BOOL WINAPI SetSystemFileCacheSize(SIZE_T mincache, SIZE_T maxcache, DWORD flags)
+{
+    FIXME("stub: %ld %ld %d\n", mincache, maxcache, flags);
+    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+    return FALSE;
+}
diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec
index e82a64d..d08f90c 100644
--- a/dlls/kernel32/kernel32.spec
+++ b/dlls/kernel32/kernel32.spec
@@ -1167,6 +1167,7 @@
 @ stdcall SetProcessShutdownParameters(long long)
 @ stdcall SetProcessWorkingSetSize(long long long)
 @ stdcall SetStdHandle(long long)
+@ stdcall SetSystemFileCacheSize(long long long)
 @ stdcall SetSystemPowerState(long long)
 @ stdcall SetSystemTime(ptr)
 @ stdcall SetSystemTimeAdjustment(long long)




More information about the wine-cvs mailing list