From 503a874af4fb3b978ca1df53ed33c40db111cd78 Mon Sep 17 00:00:00 2001 From: "Guillermo J. Rozas" Date: Mon, 22 Nov 1993 03:21:08 +0000 Subject: [PATCH] Fix bug in x_window_to_xw: it was not checking that the entry in the x_window_table was valid before extracting the window handle. --- v7/src/microcode/x11base.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v7/src/microcode/x11base.c b/v7/src/microcode/x11base.c index 4c06f266c..a0457998d 100644 --- a/v7/src/microcode/x11base.c +++ b/v7/src/microcode/x11base.c @@ -1,6 +1,6 @@ /* -*-C-*- -$Id: x11base.c,v 1.51 1993/08/17 21:25:39 cph Exp $ +$Id: x11base.c,v 1.52 1993/11/22 03:21:08 gjr Exp $ Copyright (c) 1989-93 Massachusetts Institute of Technology @@ -167,7 +167,7 @@ DEFUN (x_window_to_xw, (window), Window window) while (scan < end) { struct xwindow * xw = (*scan++); - if ((XW_WINDOW (xw)) == window) + if ((xw != 0) && ((XW_WINDOW (xw)) == window)) return (xw); } return (0); -- 2.25.1