[PATCH 2/3] regedit: Refesh listview after import

Hugh McMaster hugh.mcmaster at outlook.com
Thu Feb 9 05:12:03 CST 2017


Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
---
 programs/regedit/framewnd.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/programs/regedit/framewnd.c b/programs/regedit/framewnd.c
index fb29ffb..6b549d6 100644
--- a/programs/regedit/framewnd.c
+++ b/programs/regedit/framewnd.c
@@ -354,6 +354,8 @@ static BOOL ImportRegistryFile(HWND hWnd)
 {
     OPENFILENAMEW ofn;
     WCHAR title[128];
+    HKEY root_key = NULL;
+    WCHAR *key_path;
 
     InitOpenFileName(hWnd, &ofn);
     ofn.Flags |= OFN_ENABLESIZING;
@@ -371,6 +373,11 @@ static BOOL ImportRegistryFile(HWND hWnd)
         CheckCommDlgError(hWnd);
     }
     RefreshTreeView(g_pChildWnd->hTreeWnd);
+
+    key_path = GetItemPath(g_pChildWnd->hTreeWnd, 0, &root_key);
+    RefreshListView(g_pChildWnd->hListWnd, root_key, key_path, NULL);
+    HeapFree(GetProcessHeap(), 0, key_path);
+
     return TRUE;
 }
 
-- 
2.7.4




More information about the wine-patches mailing list