Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
b8bafa2c
Commit
b8bafa2c
authored
Dec 21, 2018
by
Piotr Caban
Committed by
Alexandre Julliard
Dec 21, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Use _timezone in _ftime64.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
61a1dae3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
time.c
dlls/msvcrt/time.c
+4
-5
No files found.
dlls/msvcrt/time.c
View file @
b8bafa2c
...
@@ -769,17 +769,16 @@ void CDECL MSVCRT__ftime64(struct MSVCRT___timeb64 *buf)
...
@@ -769,17 +769,16 @@ void CDECL MSVCRT__ftime64(struct MSVCRT___timeb64 *buf)
FILETIME
ft
;
FILETIME
ft
;
ULONGLONG
time
;
ULONGLONG
time
;
DWORD
tzid
=
GetTimeZoneInformation
(
&
tzinfo
);
_tzset_init
();
GetSystemTimeAsFileTime
(
&
ft
);
GetSystemTimeAsFileTime
(
&
ft
);
time
=
((
ULONGLONG
)
ft
.
dwHighDateTime
<<
32
)
|
ft
.
dwLowDateTime
;
time
=
((
ULONGLONG
)
ft
.
dwHighDateTime
<<
32
)
|
ft
.
dwLowDateTime
;
buf
->
time
=
time
/
TICKSPERSEC
-
SECS_1601_TO_1970
;
buf
->
time
=
time
/
TICKSPERSEC
-
SECS_1601_TO_1970
;
buf
->
millitm
=
(
time
%
TICKSPERSEC
)
/
TICKSPERMSEC
;
buf
->
millitm
=
(
time
%
TICKSPERSEC
)
/
TICKSPERMSEC
;
buf
->
timezone
=
tzinfo
.
Bias
+
buf
->
timezone
=
MSVCRT___timezone
/
60
;
(
tzid
==
TIME_ZONE_ID_STANDARD
?
tzinfo
.
StandardBias
:
buf
->
dstflag
=
GetTimeZoneInformation
(
&
tzinfo
)
==
TIME_ZONE_ID_DAYLIGHT
;
(
tzid
==
TIME_ZONE_ID_DAYLIGHT
?
tzinfo
.
DaylightBias
:
0
));
buf
->
dstflag
=
(
tzid
==
TIME_ZONE_ID_DAYLIGHT
?
1
:
0
);
}
}
/*********************************************************************
/*********************************************************************
...
...
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