From b41b66c3eae2d69cf9a477d3f3f82b4a3ca46abe Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 26 Jan 2016 16:54:14 +0100 Subject: [PATCH] -Werror,-Wsign-compare (clang-cl) According to MSDN: "If [StretchDIBits] fails, or no scan lines are copied, the return value is 0." Change-Id: I882b97b55f92618f0163f8829bf779a35b5a1452 --- fpicker/source/win32/filepicker/dibpreview.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fpicker/source/win32/filepicker/dibpreview.cxx b/fpicker/source/win32/filepicker/dibpreview.cxx index 0d2ebf4ee9a7..48d24cf54eb2 100644 --- a/fpicker/source/win32/filepicker/dibpreview.cxx +++ b/fpicker/source/win32/filepicker/dibpreview.cxx @@ -241,7 +241,7 @@ void SAL_CALL CDIBPreview::onPaint(HWND hWnd, HDC hDC) 0, 0, cxDib, cyDib, pBits, pbmi, DIB_RGB_COLORS, SRCCOPY); - OSL_ASSERT(GDI_ERROR != GDIError); + OSL_ASSERT(0 != GDIError); // paint the border RECT rc;