forked from Mirrors/wine-wine
regedit: Refresh listview after import.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>oldstable
parent
9e1d356d78
commit
e23ca416bd
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue