[PATCH v2] regedit: Dont expand items on initial tree creation.

Alexandre Julliard julliard at winehq.org
Mon Aug 20 02:52:31 CDT 2018


Alistair Leslie-Hughes <leslie_alistair at hotmail.com> writes:

> The Message TVM_EXPAND is captured in treeview_notify, then passes
> g_pChildWnd->hTreeWnd on to OnTreeExpanding which hasn't been initialized
> yet.
> The function get_last_key is already called after the hTreeWnd has been
> assigned to select the previous selected item (if it exists).
>
> Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
> ---
>  programs/regedit/childwnd.c | 7 ++++++-
>  programs/regedit/treeview.c | 3 ---
>  2 files changed, 6 insertions(+), 4 deletions(-)

This breaks the initial expansion of the root node.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list