diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-11-02 18:39:47 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-11-03 08:38:23 +0100 |
commit | 3d02f5199ea239a4376dab52cb772d306c86c3a4 (patch) | |
tree | 2487fef40f27e11234b568db1fad7afcb3bcb018 /include/comphelper | |
parent | 2488e44d525bf37ae59aad0ea49950e7cf53b7df (diff) |
-Werror,-Wsign-compare (clang-cl)
Change-Id: I32f19344d73323482c140e3bd6db5eb3c3ccb8f7
Reviewed-on: https://gerrit.libreoffice.org/44229
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/comphelper')
-rw-r--r-- | include/comphelper/windowserrorstring.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
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 |