From: Andrew Innes Date: Tue, 2 Jan 2001 22:45:32 +0000 (+0000) Subject: (get_frame_dc): Abort if called on a non-w32 frame. X-Git-Tag: emacs-pretest-21.0.95~162 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=56c16321625dc1a0429c1eda365f563f31c37921;p=emacs.git (get_frame_dc): Abort if called on a non-w32 frame. --- diff --git a/src/w32xfns.c b/src/w32xfns.c index 9117f7e91a9..49d3e1c2e7e 100644 --- a/src/w32xfns.c +++ b/src/w32xfns.c @@ -122,6 +122,9 @@ get_frame_dc (FRAME_PTR f) { HDC hdc; + if (f->output_method != output_w32) + abort (); + enter_crit (); hdc = GetDC (f->output_data.w32->window_desc);