From 2e8f092af3e045c8c3c8517655f6949e7a713fe7 Mon Sep 17 00:00:00 2001 From: Jose Carlos Jesus Date: Tue, 9 May 2023 20:23:15 -0400 Subject: [PATCH 3/3] [REGEDIT] Add a new entry even if there is no child --- base/applications/regedit/treeview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/applications/regedit/treeview.c b/base/applications/regedit/treeview.c index f6e37b7cbec..8a6ba965503 100644 --- a/base/applications/regedit/treeview.c +++ b/base/applications/regedit/treeview.c @@ -364,7 +364,7 @@ HTREEITEM InsertNode(HWND hwndTV, HTREEITEM hItem, LPWSTR name) if (!TreeView_GetItem(hwndTV, &item)) return FALSE; - if ((item.state & TVIS_EXPANDEDONCE) && (item.cChildren > 0)) + if ((item.state & TVIS_EXPANDEDONCE)) { hNewItem = AddEntryToTree(hwndTV, hItem, name, 0, 0); SendMessageW(hwndTV, TVM_SORTCHILDREN, 0, (LPARAM) hItem); -- 2.36.1.windows.1