Alistair Leslie-Hughes leslie_alistair@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@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.