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
abf2de27
Commit
abf2de27
authored
Feb 08, 2005
by
Robert Shearman
Committed by
Alexandre Julliard
Feb 08, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace 10000000 with TICKSPERSEC to make it more obvious what the
code is doing.
parent
860c84be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
time.c
dlls/ntdll/time.c
+4
-4
No files found.
dlls/ntdll/time.c
View file @
abf2de27
...
...
@@ -609,7 +609,7 @@ NTSTATUS WINAPI RtlLocalTimeToSystemTime( const LARGE_INTEGER *LocalTime,
gmt
=
time
(
NULL
);
bias
=
TIME_GetBias
(
gmt
,
&
daylight
);
SystemTime
->
QuadPart
=
LocalTime
->
QuadPart
-
bias
*
(
LONGLONG
)
10000000
;
SystemTime
->
QuadPart
=
LocalTime
->
QuadPart
-
bias
*
(
LONGLONG
)
TICKSPERSEC
;
return
STATUS_SUCCESS
;
}
...
...
@@ -637,7 +637,7 @@ NTSTATUS WINAPI RtlSystemTimeToLocalTime( const LARGE_INTEGER *SystemTime,
gmt
=
time
(
NULL
);
bias
=
TIME_GetBias
(
gmt
,
&
daylight
);
LocalTime
->
QuadPart
=
SystemTime
->
QuadPart
+
bias
*
(
LONGLONG
)
10000000
;
LocalTime
->
QuadPart
=
SystemTime
->
QuadPart
+
bias
*
(
LONGLONG
)
TICKSPERSEC
;
return
STATUS_SUCCESS
;
}
...
...
@@ -657,7 +657,7 @@ NTSTATUS WINAPI RtlSystemTimeToLocalTime( const LARGE_INTEGER *SystemTime,
BOOLEAN
WINAPI
RtlTimeToSecondsSince1970
(
const
LARGE_INTEGER
*
Time
,
LPDWORD
Seconds
)
{
ULONGLONG
tmp
=
((
ULONGLONG
)
Time
->
u
.
HighPart
<<
32
)
|
Time
->
u
.
LowPart
;
tmp
=
RtlLargeIntegerDivide
(
tmp
,
10000000
,
NULL
);
tmp
=
RtlLargeIntegerDivide
(
tmp
,
TICKSPERSEC
,
NULL
);
tmp
-=
SECS_1601_TO_1970
;
if
(
tmp
>
0xffffffff
)
return
FALSE
;
*
Seconds
=
(
DWORD
)
tmp
;
...
...
@@ -680,7 +680,7 @@ BOOLEAN WINAPI RtlTimeToSecondsSince1970( const LARGE_INTEGER *Time, LPDWORD Sec
BOOLEAN
WINAPI
RtlTimeToSecondsSince1980
(
const
LARGE_INTEGER
*
Time
,
LPDWORD
Seconds
)
{
ULONGLONG
tmp
=
((
ULONGLONG
)
Time
->
u
.
HighPart
<<
32
)
|
Time
->
u
.
LowPart
;
tmp
=
RtlLargeIntegerDivide
(
tmp
,
10000000
,
NULL
);
tmp
=
RtlLargeIntegerDivide
(
tmp
,
TICKSPERSEC
,
NULL
);
tmp
-=
SECS_1601_TO_1980
;
if
(
tmp
>
0xffffffff
)
return
FALSE
;
*
Seconds
=
(
DWORD
)
tmp
;
...
...
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