summaryrefslogtreecommitdiff
path: root/src/w32xfns.c
diff options
context:
space:
mode:
authorAndrew Innes <andrewi@gnu.org>2001-01-02 22:45:32 +0000
committerAndrew Innes <andrewi@gnu.org>2001-01-02 22:45:32 +0000
commit56c16321625dc1a0429c1eda365f563f31c37921 (patch)
tree6e2c7b014578391625632fba8b0ab2144910d075 /src/w32xfns.c
parentabf8c61b624d713f50912523d63deff2ad0ca6fb (diff)
(get_frame_dc): Abort if called on a non-w32 frame.
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 9117f7e91a..49d3e1c2e7 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);