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
e98d1da7
Commit
e98d1da7
authored
Aug 21, 2007
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Aug 21, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Restore error handling code in localtime.
parent
3c08b230
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
time.c
dlls/msvcrt/time.c
+6
-2
No files found.
dlls/msvcrt/time.c
View file @
e98d1da7
...
...
@@ -105,10 +105,14 @@ MSVCRT_time_t CDECL MSVCRT_mktime(struct MSVCRT_tm *mstm)
struct
MSVCRT_tm
*
CDECL
MSVCRT_localtime
(
const
MSVCRT_time_t
*
secs
)
{
struct
tm
tm
;
thread_data_t
*
data
=
msvcrt_get_thread_data
()
;
thread_data_t
*
data
;
time_t
seconds
=
*
secs
;
localtime_r
(
&
seconds
,
&
tm
);
if
(
seconds
<
0
)
return
NULL
;
if
(
!
localtime_r
(
&
seconds
,
&
tm
))
return
NULL
;
data
=
msvcrt_get_thread_data
();
unix_tm_to_msvcrt
(
&
data
->
time_buffer
,
&
tm
);
return
&
data
->
time_buffer
;
...
...
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