[Libreoffice-commits] core.git: include/comphelper
Stephan Bergmann
sbergman at redhat.com
Fri Nov 3 07:38:50 UTC 2017
include/comphelper/windowserrorstring.hxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 3d02f5199ea239a4376dab52cb772d306c86c3a4
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Thu Nov 2 18:39:47 2017 +0100
-Werror,-Wsign-compare (clang-cl)
Change-Id: I32f19344d73323482c140e3bd6db5eb3c3ccb8f7
Reviewed-on: https://gerrit.libreoffice.org/44229
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/include/comphelper/windowserrorstring.hxx b/include/comphelper/windowserrorstring.hxx
index 4e401571a2fb..bb4b16241ca5 100644
--- a/include/comphelper/windowserrorstring.hxx
+++ b/include/comphelper/windowserrorstring.hxx
@@ -47,7 +47,7 @@ inline OUString WindowsErrorStringFromHRESULT(HRESULT hr)
// we might actually have a Win32 error code converted using HRESULT_FROM_WIN32 macro
DWORD nErrorCode = DWORD(hr);
- if ((hr & 0xFFFF0000) == MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, 0) || hr == S_OK)
+ if (HRESULT(hr & 0xFFFF0000) == MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, 0) || hr == S_OK)
{
nErrorCode = HRESULT_CODE(hr);
// https://msdn.microsoft.com/en-us/library/ms679360 mentions that the codes might have
More information about the Libreoffice-commits
mailing list