--- a\src\win\iupwin_list.c	Mon Dec 11 14:52:42 2017
+++ b\src\win\iupwin_list.c	Wed Jan 24 23:01:01 2018
@@ -962,12 +962,14 @@
 
 static int winListSetImageAttrib(Ihandle* ih, int id, const char* value)
 {
-  HBITMAP hBitmap = iupImageGetImage(value, ih, 0);
+  HBITMAP hBitmap;
   int pos = iupListGetPosAttrib(ih, id);
 
   if (!ih->data->show_image || pos < 0)
+  {
     return 0;
-
+  }
+  hBitmap = iupImageGetImage(value, ih, 0);
   winListSetItemData(ih, pos, NULL, hBitmap);
 
   iupdrvRedrawNow(ih);
@@ -1637,6 +1639,7 @@
       *result = 0;
       return 1;
     }
+    break;
   case WM_SETFOCUS:
   case WM_KILLFOCUS:
   case WM_MOUSELEAVE:
