# HG changeset patch # User Jason Rumney # Date 977396792 0 # Node ID 94c3431a7fe2efbdebe8df8c2fa9337fc57d027f # Parent 662601fb7a073395f3609abc4fdfec5ab468796d (x_draw_hollow_cursor): Delay obtaining the frame's DC to avoid returning without releasing it. diff -r 662601fb7a07 -r 94c3431a7fe2 src/w32term.c --- a/src/w32term.c Thu Dec 21 11:05:33 2000 +0000 +++ b/src/w32term.c Thu Dec 21 11:06:32 2000 +0000 @@ -8741,7 +8741,7 @@ struct glyph_row *row; { struct frame *f = XFRAME (WINDOW_FRAME (w)); - HDC hdc = get_frame_dc (f); + HDC hdc; RECT rect; int wd; struct glyph *cursor_glyph; @@ -8770,7 +8770,7 @@ wd = min (CANON_X_UNIT (f), wd); rect.right = rect.left + wd; - + hdc = get_frame_dc (f); FrameRect (hdc, &rect, hb); DeleteObject (hb);