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
2efc73b9
Commit
2efc73b9
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 GetDaylightFlag() to set dstflag value in _ftime64.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b8bafa2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
time.c
dlls/msvcrt/time.c
+3
-2
No files found.
dlls/msvcrt/time.c
View file @
2efc73b9
...
...
@@ -36,6 +36,8 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
msvcrt
);
BOOL
WINAPI
GetDaylightFlag
(
void
);
static
const
int
MonthLengths
[
2
][
12
]
=
{
{
31
,
28
,
31
,
30
,
31
,
30
,
31
,
31
,
30
,
31
,
30
,
31
},
...
...
@@ -765,7 +767,6 @@ double CDECL MSVCRT_difftime(MSVCRT___time32_t time1, MSVCRT___time32_t time2)
*/
void
CDECL
MSVCRT__ftime64
(
struct
MSVCRT___timeb64
*
buf
)
{
TIME_ZONE_INFORMATION
tzinfo
;
FILETIME
ft
;
ULONGLONG
time
;
...
...
@@ -778,7 +779,7 @@ void CDECL MSVCRT__ftime64(struct MSVCRT___timeb64 *buf)
buf
->
time
=
time
/
TICKSPERSEC
-
SECS_1601_TO_1970
;
buf
->
millitm
=
(
time
%
TICKSPERSEC
)
/
TICKSPERMSEC
;
buf
->
timezone
=
MSVCRT___timezone
/
60
;
buf
->
dstflag
=
Get
TimeZoneInformation
(
&
tzinfo
)
==
TIME_ZONE_ID_DAYLIGHT
;
buf
->
dstflag
=
Get
DaylightFlag
()
;
}
/*********************************************************************
...
...
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