- Merge from trunk up to r45543
[reactos.git] / base / applications / regedit / treeview.c
index 9165dab..cfbd401 100644 (file)
@@ -15,7 +15,7 @@
  *
  * You should have received a copy of the GNU Lesser General Public
  * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
 #include <regedit.h>
@@ -544,7 +544,6 @@ BOOL CreateNewKey(HWND hwndTV, HTREEITEM hItem)
     HKEY hKey = NULL;
     HKEY hNewKey = NULL;
     BOOL bSuccess = FALSE;
-    LONG lResult;
     DWORD dwDisposition;
     HTREEITEM hNewItem;
 
@@ -559,7 +558,7 @@ BOOL CreateNewKey(HWND hwndTV, HTREEITEM hItem)
     do
     {
         _sntprintf(szNewKey, sizeof(szNewKey) / sizeof(szNewKey[0]), szNewKeyFormat, iIndex++);
-        lResult = RegCreateKeyEx(hKey, szNewKey, 0, NULL, 0, KEY_ALL_ACCESS, NULL, &hNewKey, &dwDisposition);
+        RegCreateKeyEx(hKey, szNewKey, 0, NULL, 0, KEY_ALL_ACCESS, NULL, &hNewKey, &dwDisposition);
         if (hNewKey && (dwDisposition == REG_OPENED_EXISTING_KEY))
         {
             RegCloseKey(hNewKey);