From 925cac26e971993541bc294aaed5367a8968c000 Mon Sep 17 00:00:00 2001 From: Tony Cook Date: Sat, 16 Oct 2010 00:17:45 +0000 Subject: [PATCH] make sure GetDIBits() failures are reported --- scwin32.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scwin32.c b/scwin32.c index fa17675..8613f4c 100644 --- 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); -- 2.30.2