Christian Costa : kernel32: Add stub for GetSystemTimes.

Alexandre Julliard julliard at winehq.org
Fri Mar 27 10:06:38 CDT 2009


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

Author: Christian Costa <titan.costa at wanadoo.fr>
Date:   Thu Mar 26 23:00:55 2009 +0100

kernel32: Add stub for GetSystemTimes.

---

 dlls/kernel32/kernel32.spec |    2 +-
 dlls/kernel32/time.c        |   20 ++++++++++++++++++++
 2 files changed, 21 insertions(+), 1 deletions(-)

diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec
index c615ef1..18b9737 100644
--- a/dlls/kernel32/kernel32.spec
+++ b/dlls/kernel32/kernel32.spec
@@ -628,7 +628,7 @@
 @ stdcall GetSystemTime(ptr)
 @ stdcall GetSystemTimeAdjustment(ptr ptr ptr)
 @ stdcall GetSystemTimeAsFileTime(ptr)
-# @ stub GetSystemTimes
+@ stdcall GetSystemTimes(ptr ptr ptr)
 @ stdcall GetSystemWindowsDirectoryA(ptr long)
 @ stdcall GetSystemWindowsDirectoryW(ptr long)
 @ stdcall GetSystemWow64DirectoryA(ptr long)
diff --git a/dlls/kernel32/time.c b/dlls/kernel32/time.c
index 29b3dc8..b30314c 100644
--- a/dlls/kernel32/time.c
+++ b/dlls/kernel32/time.c
@@ -1013,3 +1013,23 @@ BOOL WINAPI FileTimeToDosDateTime( const FILETIME *ft, LPWORD fatdate,
                    + tm->tm_mday;
     return TRUE;
 }
+
+/*********************************************************************
+ *      GetSystemTimes                                  (KERNEL32.@)
+ *
+ * Retrieves system timing information
+ *
+ * PARAMS
+ *  lpIdleTime [O] Destination for idle time.
+ *  lpKernelTime [O] Destination for kernel time.
+ *  lpUserTime [O] Destination for user time.
+ *
+ * RETURNS
+ *  TRUE if success, FALSE otherwise.
+ */
+BOOL WINAPI GetSystemTimes(LPFILETIME lpIdleTime, LPFILETIME lpKernelTime, LPFILETIME lpUserTime)
+{
+    FIXME("(%p,%p,%p): Stub!\n", lpIdleTime, lpKernelTime, lpUserTime);
+
+    return FALSE;
+}




More information about the wine-cvs mailing list