Hugh McMaster : regedit: Refresh listview after import.
Alexandre Julliard
julliard at winehq.org
Thu Feb 9 15:54:26 CST 2017
Module: wine
Branch: master
Commit: e23ca416bd873cb546a44950c406862677044831
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e23ca416bd873cb546a44950c406862677044831
Author: Hugh McMaster <hugh.mcmaster at outlook.com>
Date: Thu Feb 9 11:12:03 2017 +0000
regedit: Refresh listview after import.
Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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;
}
More information about the wine-cvs
mailing list