From b473508960562547c65622a8ff472fbb93fffba3 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Mon, 22 Nov 2010 13:06:05 +0000 Subject: [PATCH 1/1] [REGEDIT] Fix syntax svn path=/branches/cmake-bringup/; revision=49707 --- base/applications/regedit/framewnd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/base/applications/regedit/framewnd.c b/base/applications/regedit/framewnd.c index aa3a649f5da..d11c8a01e14 100644 --- a/base/applications/regedit/framewnd.c +++ b/base/applications/regedit/framewnd.c @@ -360,12 +360,14 @@ static BOOL UnloadHive(HWND hWnd) TCHAR Caption[128]; LPCTSTR pszKeyPath; HKEY hRootKey; + LONG regUnloadResult; + /* get the item key to unload */ pszKeyPath = GetItemPath(g_pChildWnd->hTreeWnd, 0, &hRootKey); /* load and set the caption and flags for dialog */ LoadString(hInst, IDS_UNLOAD_HIVE, Caption, COUNT_OF(Caption)); /* now unload the hive */ - LONG regUnloadResult = RegUnLoadKey(hRootKey, pszKeyPath); + regUnloadResult = RegUnLoadKey(hRootKey, pszKeyPath); if(regUnloadResult == ERROR_SUCCESS) { /* refresh tree and list views */ -- 2.17.1