[ros-diffs] [tkreuzer] 49707: [REGEDIT] Fix syntax

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Mon Nov 22 13:06:05 UTC 2010


Author: tkreuzer
Date: Mon Nov 22 13:06:05 2010
New Revision: 49707

URL: http://svn.reactos.org/svn/reactos?rev=49707&view=rev
Log:
[REGEDIT]
Fix syntax

Modified:
    branches/cmake-bringup/base/applications/regedit/framewnd.c

Modified: branches/cmake-bringup/base/applications/regedit/framewnd.c
URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/base/applications/regedit/framewnd.c?rev=49707&r1=49706&r2=49707&view=diff
==============================================================================
--- branches/cmake-bringup/base/applications/regedit/framewnd.c [iso-8859-1] (original)
+++ branches/cmake-bringup/base/applications/regedit/framewnd.c [iso-8859-1] Mon Nov 22 13:06:05 2010
@@ -360,12 +360,14 @@
     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 */




More information about the Ros-diffs mailing list