summaryrefslogtreecommitdiff
path: root/src/w32xfns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/w32xfns.c')
-rw-r--r--src/w32xfns.c3
1 files changed, 3 insertions, 0 deletions
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);