regedit: Refresh listview after import.

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Hugh McMaster 2017-02-09 11:12:03 +00:00 committed by Alexandre Julliard
parent 9e1d356d78
commit e23ca416bd
1 changed files with 7 additions and 0 deletions

View File

@ -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;
}