(get_frame_dc): Abort if called on a non-w32 frame.
authorAndrew Innes <andrewi@gnu.org>
Tue, 2 Jan 2001 22:45:32 +0000 (22:45 +0000)
committerAndrew Innes <andrewi@gnu.org>
Tue, 2 Jan 2001 22:45:32 +0000 (22:45 +0000)
src/w32xfns.c

index 9117f7e..49d3e1c 100644 (file)
@@ -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);