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
6119f499
Commit
6119f499
authored
Jul 29, 2007
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jul 30, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Simplify TIME_GetBias.
parent
a188662e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
time.c
dlls/ntdll/time.c
+8
-9
No files found.
dlls/ntdll/time.c
View file @
6119f499
...
...
@@ -607,20 +607,19 @@ static int TIME_GetBias(time_t utc, int *pdaylight)
int
ret
;
RtlEnterCriticalSection
(
&
TIME_GetBias_section
);
if
(
utc
==
last_utc
)
{
*
pdaylight
=
last_daylight
;
ret
=
last_bias
;
}
else
if
(
utc
!=
last_utc
)
{
ptm
=
localtime
(
&
utc
);
*
pdaylight
=
last_daylight
=
ptm
->
tm_isdst
;
/* daylight for local timezone */
last_daylight
=
ptm
->
tm_isdst
;
/* daylight for local timezone */
ptm
=
gmtime
(
&
utc
);
ptm
->
tm_isdst
=
*
p
daylight
;
/* use local daylight, not that of Greenwich */
ptm
->
tm_isdst
=
last_
daylight
;
/* use local daylight, not that of Greenwich */
last_utc
=
utc
;
ret
=
last_bias
=
(
int
)(
utc
-
mktime
(
ptm
));
last_bias
=
(
int
)(
utc
-
mktime
(
ptm
));
}
*
pdaylight
=
last_daylight
;
ret
=
last_bias
;
RtlLeaveCriticalSection
(
&
TIME_GetBias_section
);
return
ret
;
}
...
...
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