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
8591c2ac
Commit
8591c2ac
authored
Mar 10, 2021
by
Rémi Bernon
Committed by
Alexandre Julliard
Mar 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Fix tick count read from user shared data.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b3bd08d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
time.c
dlls/ntdll/tests/time.c
+2
-2
No files found.
dlls/ntdll/tests/time.c
View file @
8591c2ac
...
...
@@ -206,9 +206,9 @@ static void test_user_shared_data_time(void)
{
t1
=
GetTickCount
();
if
(
user_shared_data
->
NtMajorVersion
<=
5
&&
user_shared_data
->
NtMinorVersion
<=
1
)
t2
=
(
*
(
volatile
ULONG
*
)
&
user_shared_data
->
TickCountLowDeprecated
*
(
ULONG64
)
user_shared_data
->
TickCountMultiplier
)
>>
24
;
t2
=
(
DWORD
)((
*
(
volatile
ULONG
*
)
&
user_shared_data
->
TickCountLowDeprecated
*
(
ULONG64
)
user_shared_data
->
TickCountMultiplier
)
>>
24
)
;
else
t2
=
(
read_ksystem_time
(
&
user_shared_data
->
u
.
TickCount
)
*
user_shared_data
->
TickCountMultiplier
)
>>
24
;
t2
=
(
DWORD
)((
read_ksystem_time
(
&
user_shared_data
->
u
.
TickCount
)
*
user_shared_data
->
TickCountMultiplier
)
>>
24
)
;
t3
=
GetTickCount
();
}
while
(
t3
<
t1
&&
i
++
<
1
);
/* allow for wrap, but only once */
...
...
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