From cf4c2e0b5453c0297ea749dd841e7587c99feb71 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 7 Apr 2008 20:34:24 +0200 Subject: [PATCH] user32: Fix list_window_parents when run in the desktop process. --- dlls/user32/win.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/user32/win.c b/dlls/user32/win.c index aa5bd878eca..a1f3024eef6 100644 --- a/dlls/user32/win.c +++ b/dlls/user32/win.c @@ -274,6 +274,7 @@ static HWND *list_window_parents( HWND hwnd ) } list[pos] = current = win->parent; WIN_ReleasePtr( win ); + if (!current) return list; if (++pos == size - 1) { /* need to grow the list */