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
7c0385bd
Commit
7c0385bd
authored
Apr 30, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Check for time conversion error to silence a compiler warning.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
05fca48e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
time.c
dlls/ntdll/time.c
+2
-3
No files found.
dlls/ntdll/time.c
View file @
7c0385bd
...
...
@@ -1006,9 +1006,8 @@ NTSTATUS WINAPI NtSetSystemTime(const LARGE_INTEGER *NewTime, LARGE_INTEGER *Old
if
(
!
OldTime
)
OldTime
=
&
tm
;
NtQuerySystemTime
(
OldTime
);
RtlTimeToSecondsSince1970
(
OldTime
,
&
oldsec
);
RtlTimeToSecondsSince1970
(
NewTime
,
&
sec
);
if
(
!
RtlTimeToSecondsSince1970
(
OldTime
,
&
oldsec
))
return
STATUS_INVALID_PARAMETER
;
if
(
!
RtlTimeToSecondsSince1970
(
NewTime
,
&
sec
))
return
STATUS_INVALID_PARAMETER
;
/* fake success if time didn't change */
if
(
oldsec
==
sec
)
...
...
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