diff options
author | btolsch <btolsch@chromium.org> | 2021-08-04 14:47:53 -0700 |
---|---|---|
committer | Openscreen LUCI CQ <openscreen-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2021-08-04 22:15:22 +0000 |
commit | a26944325289323558d134b248610857fe84a2d1 (patch) | |
tree | 1edb3fe0a786b507c71b1a39a3fd8aff2033bbf6 /cast | |
parent | 9b366608ca8769c588ee3ba3c32d54d628c057eb (diff) | |
download | openscreen-a26944325289323558d134b248610857fe84a2d1.tar.gz |
Fix use of win32 gmtime_s
This change fixes the error condition of gmtime_s, which is that it
returns 0 in success and non-zero on error.
Bug: chromium:1236616
Change-Id: I7d4cbab7e547c3bd10dbc6df78f5122eeec2b35b
Reviewed-on: https://chromium-review.googlesource.com/c/openscreen/+/3072865
Reviewed-by: Ryan Keane <rwkeane@google.com>
Commit-Queue: Brandon Tolsch <btolsch@chromium.org>
Diffstat (limited to 'cast')
-rw-r--r-- | cast/common/certificate/types.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cast/common/certificate/types.cc b/cast/common/certificate/types.cc index d891c0a9..2c8fecc1 100644 --- a/cast/common/certificate/types.cc +++ b/cast/common/certificate/types.cc @@ -55,7 +55,7 @@ bool DateTimeFromSeconds(uint64_t seconds, DateTime* time) { #if defined(_WIN32) // NOTE: This is for compiling in Chromium and is not validated in any direct // libcast Windows build. - if (!gmtime_s(&tm, &sec)) { + if (gmtime_s(&tm, &sec)) { return false; } #else |