From 7e166218fc8d1d0571561937ba64c9cc1c0b5497 Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Tue, 15 May 2007 23:05:27 +0000 Subject: [PATCH] (Fdelete_frame): Only get kboard when MULTI_KBOARD defined. (make_terminal_frame) [WINDOWSNT]: Initialize terminal. --- src/frame.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/frame.c b/src/frame.c index 740dac812c..859802995a 100644 --- a/src/frame.c +++ b/src/frame.c @@ -603,7 +603,9 @@ make_terminal_frame (struct terminal *terminal) #else #ifdef WINDOWSNT f->output_method = output_termcap; - f->output_data.x = &tty_display; /* XXX ??? */ + f->terminal = terminal; + f->terminal->reference_count++; + create_w32cons_output (f); #else #ifdef MAC_OS8 make_mac_terminal_frame (f); @@ -1553,8 +1555,10 @@ The functions are run with one arg, the frame to be deleted. */) else delete_terminal (terminal); } +#ifdef MULTI_KBOARD else kb = terminal->kboard; +#endif } /* If we've deleted the last_nonminibuf_frame, then try to find -- 2.20.1