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 fa17675..8613f4c 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);