make sure GetDIBits() failures are reported
authorTony Cook <tony@develop-help.com>
Sat, 16 Oct 2010 00:17:45 +0000 (00:17 +0000)
committerTony Cook <tony@develop-help.com>
Sat, 16 Oct 2010 00:17:45 +0000 (00:17 +0000)
scwin32.c

index fa1767526581f998154e7bc7bceee0fb2e58e65d..8613f4cd144efea1cd4c4b76468c5a52c26d0dd7 100644 (file)
--- a/scwin32.c
+++ b/scwin32.c
@@ -139,6 +139,9 @@ imss_win32(unsigned hwnd_u, int include_decor, int left, int top,
       myfree(line);
     }
   }
+  else {
+    i_push_errorf(0, "GetDIBits() failure %d", (long)GetLastError());
+  }
 
   i_tags_setn(&result->tags, "ss_window_width", window_width);
   i_tags_setn(&result->tags, "ss_window_height", window_height);