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
aa0f3794
Commit
aa0f3794
authored
Oct 02, 2003
by
Gerald Pfeifer
Committed by
Alexandre Julliard
Oct 02, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cast time_t parameters to fprintf(...,"%l",...) to long.
parent
2d7cc858
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
time.c
dlls/ntdll/time.c
+3
-2
write.c
tools/wmc/write.c
+2
-2
No files found.
dlls/ntdll/time.c
View file @
aa0f3794
...
...
@@ -831,8 +831,9 @@ NTSTATUS WINAPI NtSetSystemTime(const LARGE_INTEGER *NewTime, LARGE_INTEGER *Old
ERR
(
"Cannot set time to %d/%d/%d %d:%d:%d Time adjustment %ld %s
\n
"
,
tf
.
Year
,
tf
.
Month
,
tf
.
Day
,
tf
.
Hour
,
tf
.
Minute
,
tf
.
Second
,
sec
-
oldsec
,
err
==
-
1
?
"No Permission"
:
sec
==
(
time_t
)
-
1
?
""
:
"is too large."
);
(
long
)(
sec
-
oldsec
),
err
==
-
1
?
"No Permission"
:
sec
==
(
time_t
)
-
1
?
""
:
"is too large."
);
if
(
err
==
2
)
return
STATUS_INVALID_PARAMETER
;
...
...
tools/wmc/write.c
View file @
aa0f3794
...
...
@@ -170,8 +170,8 @@ void write_h_file(const char *fname)
cptr
=
ctime
(
&
now
);
killnl
(
cptr
,
0
);
fprintf
(
fp
,
str_header
,
input_name
?
input_name
:
"<stdin>"
,
cmdline
,
cptr
);
fprintf
(
fp
,
"#ifndef __WMCGENERATED_%08lx_H
\n
"
,
now
);
fprintf
(
fp
,
"#define __WMCGENERATED_%08lx_H
\n
"
,
now
);
fprintf
(
fp
,
"#ifndef __WMCGENERATED_%08lx_H
\n
"
,
(
long
)
now
);
fprintf
(
fp
,
"#define __WMCGENERATED_%08lx_H
\n
"
,
(
long
)
now
);
fprintf
(
fp
,
"
\n
"
);
/* Write severity and facility aliases */
...
...
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