diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-09-21 17:29:29 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-09-21 22:03:41 +0200 |
commit | 462454b7e0aea2d067352e33f320198a850e0127 (patch) | |
tree | dbf6b406561e6bab818b707517ee388b3ef499a7 /xmlsecurity/qa | |
parent | 0098bee792c3e208ea4f6ef1c676958d3f4cd207 (diff) |
Map from GetLastError() to HRESULT
clang-cl reported "error: comparison of integers of different signs: 'DWORD'
(aka 'unsigned long') and 'HRESULT' (aka 'long') [-Werror,-Wsign-compare]"
Change-Id: I568f03bd863ba63e30143483d9573042f3506de7
Reviewed-on: https://gerrit.libreoffice.org/42597
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'xmlsecurity/qa')
-rw-r--r-- | xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx b/xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx index c3da91797458..642a034ae5e1 100644 --- a/xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx +++ b/xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx @@ -190,7 +190,7 @@ bool PDFSigningTest::sign(const OUString& rInURL, const OUString& rOutURL, size_ if (!bSignResult) { DWORD dwErr = GetLastError(); - if (dwErr == CRYPT_E_NO_KEY_PROPERTY) + if (HRESULT_FROM_WIN32(dwErr) == CRYPT_E_NO_KEY_PROPERTY) { SAL_WARN("xmlsecurity.pdfio.test", "Skipping a certificate without a private key"); continue; // The certificate does not have a private key - not a valid certificate |