comctl32: Use WARN instead of ERR if a toolbar index is out of range.

Dmitry Timoshkov dmitry at baikal.ru
Thu May 24 00:43:36 CDT 2012


This is a usual code path if there is no imagelist assigned, or an app
draws the toolbar button on its own in NM_CUSTOMDRAW handler.
---
 dlls/comctl32/toolbar.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/comctl32/toolbar.c b/dlls/comctl32/toolbar.c
index da13aa2..cd19a58 100644
--- a/dlls/comctl32/toolbar.c
+++ b/dlls/comctl32/toolbar.c
@@ -428,7 +428,7 @@ TOOLBAR_GetImageListForDrawing (const TOOLBAR_INFO *infoPtr, TBUTTON_INFO *btnPt
 
     if (!TOOLBAR_IsValidBitmapIndex(infoPtr,btnPtr->iBitmap)) {
 	if (btnPtr->iBitmap == I_IMAGENONE) return NULL;
-	ERR("bitmap for ID %d, index %d is not valid, number of bitmaps in imagelist: %d\n",
+	WARN("bitmap for ID %d, index %d is not valid, number of bitmaps in imagelist: %d\n",
 	    HIWORD(btnPtr->iBitmap), LOWORD(btnPtr->iBitmap), infoPtr->nNumBitmaps);
 	return NULL;
     }
-- 
1.7.10.1




More information about the wine-patches mailing list