Alexandre Julliard : user32: Fix list_window_parents when run in the desktop process.

Alexandre Julliard julliard at winehq.org
Mon Apr 7 14:46:48 CDT 2008


Module: wine
Branch: master
Commit: cf4c2e0b5453c0297ea749dd841e7587c99feb71
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=cf4c2e0b5453c0297ea749dd841e7587c99feb71

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Apr  7 20:34:24 2008 +0200

user32: Fix list_window_parents when run in the desktop process.

---

 dlls/user32/win.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/user32/win.c b/dlls/user32/win.c
index aa5bd87..a1f3024 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 */




More information about the wine-cvs mailing list