diff --git a/lang/cpp/src/context.cpp b/lang/cpp/src/context.cpp index 1e8d8f09..444809af 100644 --- a/lang/cpp/src/context.cpp +++ b/lang/cpp/src/context.cpp @@ -155,7 +155,7 @@ int Error::toErrno() const // static bool Error::hasSystemError() { - return gpgme_err_code_from_syserror() == GPG_ERR_MISSING_ERRNO ; + return gpgme_err_code_from_syserror() != GPG_ERR_MISSING_ERRNO ; } // static