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
45e7a846
Commit
45e7a846
authored
Apr 23, 2001
by
Francois Gouget
Committed by
Alexandre Julliard
Apr 23, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
We must not free the pointer returned by localtime (especially not
with MSVCRT_free!). We no longer need to include stdlib.h.
parent
d1ff49d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
time.c
dlls/msvcrt/time.c
+2
-4
No files found.
dlls/msvcrt/time.c
View file @
45e7a846
...
...
@@ -6,11 +6,11 @@
* Copyright 1997,2000 Uwe Bonnes
* Copyright 2000 Jon Griffiths
*/
#include <time.h>
#include <sys/times.h>
#include "msvcrt.h"
#include "msvcrt
/stdlib
.h"
#include "msvcrt.h"
#include "msvcrt/sys/timeb.h"
#include "msvcrt/time.h"
...
...
@@ -29,8 +29,6 @@ char* msvcrt_get_current_time(char* out, const char* format)
if
(
time
(
&
t
)
!=
bad_time
&&
(
_tm
=
localtime
(
&
t
))
&&
strftime
(
out
,
9
,
format
,
_tm
)
==
8
)
retval
=
out
;
if
(
_tm
)
MSVCRT_free
(
_tm
);
return
retval
;
}
...
...
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