Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
7319157d
Commit
7319157d
authored
Aug 10, 2007
by
Alex Villacís Lasso
Committed by
Alexandre Julliard
Aug 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Fix IReferenceClock::GetTime() implementation for system clock.
parent
9d436f69
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
systemclock.c
dlls/quartz/systemclock.c
+2
-5
referenceclock.c
dlls/quartz/tests/referenceclock.c
+0
-2
No files found.
dlls/quartz/systemclock.c
View file @
7319157d
...
...
@@ -244,14 +244,11 @@ static HRESULT WINAPI SystemClockImpl_GetTime(IReferenceClock* iface, REFERENCE_
curTimeTickCount
=
GetTickCount
();
EnterCriticalSection
(
&
This
->
safe
);
/** TODO: safe this not using * 10000 */
if
(
This
->
lastTimeTickCount
==
curTimeTickCount
)
hr
=
S_FALSE
;
This
->
lastRefTime
+=
(
REFERENCE_TIME
)
(
DWORD
)
(
curTimeTickCount
-
This
->
lastTimeTickCount
)
*
(
REFERENCE_TIME
)
10000
;
This
->
lastTimeTickCount
=
curTimeTickCount
;
LeaveCriticalSection
(
&
This
->
safe
);
*
pTime
=
This
->
lastRefTime
;
if
(
This
->
lastTimeTickCount
==
curTimeTickCount
)
hr
=
S_FALSE
;
This
->
lastTimeTickCount
=
curTimeTickCount
;
LeaveCriticalSection
(
&
This
->
safe
);
return
hr
;
}
...
...
dlls/quartz/tests/referenceclock.c
View file @
7319157d
...
...
@@ -63,9 +63,7 @@ static void test_IReferenceClock_methods(const char * clockdesc, IReferenceClock
Sleep
(
1000
);
/* Sleep for at least 1 second */
hr
=
IReferenceClock_GetTime
(
pClock
,
&
time2
);
/* After a 1-second sleep, there is no excuse to get S_FALSE (see TODO above) */
todo_wine
{
ok
(
hr
==
S_OK
,
"%s - Expected S_OK, got 0x%08x
\n
"
,
clockdesc
,
hr
);
}
/* FIXME: How much deviation should be allowed after a sleep? */
diff
=
time2
-
time1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment