make sure GetDIBits() failures are reported