Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:edentoft
wine
voddlerwine.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File voddlerwine.diff of Package wine
diff -r -U3 wine-1.1.32/dlls/kernel32/time.c wine/dlls/kernel32/time.c --- wine-1.1.32/dlls/kernel32/time.c 2009-10-23 20:08:49.000000000 +0200 +++ wine/dlls/kernel32/time.c 2009-11-01 00:51:35.000000000 +0100 @@ -1026,9 +1026,17 @@ * RETURNS * TRUE if success, FALSE otherwise. */ -BOOL WINAPI GetSystemTimes(LPFILETIME lpIdleTime, LPFILETIME lpKernelTime, LPFILETIME lpUserTime) +VOID WINAPI GetSystemTimes(LPFILETIME lpIdleTime, LPFILETIME lpKernelTime, LPFILETIME lpUserTime) { - FIXME("(%p,%p,%p): Stub!\n", lpIdleTime, lpKernelTime, lpUserTime); - - return FALSE; + // FIXME("(%p,%p,%p): Stub!n", lpIdleTime, lpKernelTime, lpUserTime); + struct tms tms; + times(&tms); + /* FIXME: Calculate based on Idle process time + * + if (lpIdleTime) + * + TIME_ClockTimeToFileTime(tms.tms_utime+tms.tms_stime,lpIdleTime); + * + */ + if (lpKernelTime) + TIME_ClockTimeToFileTime(tms.tms_stime,lpKernelTime); + if (lpUserTime) + TIME_ClockTimeToFileTime(tms.tms_utime,lpUserTime); } Only in wine-1.1.32: .gitignore diff -r -U3 wine-1.1.32/include/winbase.h wine/include/winbase.h --- wine-1.1.32/include/winbase.h 2009-10-23 20:08:49.000000000 +0200 +++ wine/include/winbase.h 2009-11-01 00:52:55.000000000 +0100 @@ -1726,6 +1726,7 @@ WINBASEAPI VOID WINAPI GetSystemTime(LPSYSTEMTIME); WINBASEAPI BOOL WINAPI GetSystemTimeAdjustment(PDWORD,PDWORD,PBOOL); WINBASEAPI VOID WINAPI GetSystemTimeAsFileTime(LPFILETIME); +WINBASEAPI VOID WINAPI GetSystemTimes(LPFILETIME,LPFILETIME,LPFILETIME); WINBASEAPI UINT WINAPI GetSystemWindowsDirectoryA(LPSTR,UINT); WINBASEAPI UINT WINAPI GetSystemWindowsDirectoryW(LPWSTR,UINT); #define GetSystemWindowsDirectory WINELIB_NAME_AW(GetSystemWindowsDirectory)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor