[Bug 19963] New: GetSystemTimeAdjustment() should return 10000000 / sysconf(_SC_CLK_TCK)
wine-bugs at winehq.org
wine-bugs at winehq.org
Sun Sep 6 17:02:17 CDT 2009
http://bugs.winehq.org/show_bug.cgi?id=19963
Summary: GetSystemTimeAdjustment() should return 10000000 /
sysconf(_SC_CLK_TCK)
Product: Wine
Version: 1.1.29
Platform: PC
URL: http://rh-software.com/
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: kernel32
AssignedTo: wine-bugs at winehq.org
ReportedBy: ray at pobox.co.uk
CC: ray at pobox.co.uk
Currently there is now way to get the clock tick rate.
GetSystemTimeAdjustment() should return this. The fix is trivial and shown
below. Just because TimeAdjustmentDisabled is TRUE failing to return the
current asjustment I beleive to be an error.
Change to code to be:
BOOL WINAPI GetSystemTimeAdjustment( PDWORD lpTimeAdjustment, PDWORD
lpTimeIncrement,
PBOOL lpTimeAdjustmentDisabled )
{
*lpTimeAdjustment = 0;
*lpTimeIncrement = 10000000 / sysconf(_SC_CLK_TCK);
*lpTimeAdjustmentDisabled = TRUE;
return TRUE;
}
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the wine-bugs
mailing list