Kaydet (Commit) 462454b7 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

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/42597Reviewed-by: 's avatarMike Kaganski <mike.kaganski@collabora.com>
Tested-by: 's avatarJenkins <ci@libreoffice.org>
üst 0098bee7
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment