changeset 35678:c2f95853d4c4

(x_draw_row_bitmaps): Delay obtaining HDC to avoid returning without releasing it.
author Eli Zaretskii <eliz@gnu.org>
date Mon, 29 Jan 2001 12:35:24 +0000
parents 89dde7b9a765
children 38c7aeb5a6a3
files src/w32term.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32term.c	Mon Jan 29 12:29:50 2001 +0000
+++ b/src/w32term.c	Mon Jan 29 12:35:24 2001 +0000
@@ -898,7 +898,7 @@
   enum bitmap_type bitmap;
   struct face *face;
   int header_line_height = -1;
-  HDC hdc = get_frame_dc (f);
+  HDC hdc;
 
   xassert (interrupt_input_blocked);
 
@@ -922,6 +922,8 @@
   else
     bitmap = NO_BITMAP;
 
+  hdc = get_frame_dc (f);
+
   /* Clear flags area if no bitmap to draw or if bitmap doesn't fill
      the flags area.  */
   if (bitmap == NO_BITMAP