From 3783e49d3ac4e0ae7cddf17e0b791798abed93c7 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 8 Jan 2003 19:55:08 +0000 Subject: [PATCH] Removed no longer used local variable (spotted by Dmitry Timoshkov). --- server/window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/window.c b/server/window.c index 1d247cfd7be..61e4e4ad54f 100644 --- a/server/window.c +++ b/server/window.c @@ -346,9 +346,9 @@ int make_window_active( user_handle_t window ) /* find child of 'parent' that contains the given point (in parent-relative coords) */ static struct window *child_window_from_point( struct window *parent, int x, int y ) { - struct window *ptr, *ret = NULL; + struct window *ptr; - for (ptr = parent->first_child; ptr && !ret; ptr = ptr->next) + for (ptr = parent->first_child; ptr; ptr = ptr->next) { if (!(ptr->style & WS_VISIBLE)) continue; /* not visible -> skip */ if ((ptr->style & (WS_POPUP|WS_CHILD|WS_DISABLED)) == (WS_CHILD|WS_DISABLED))