From 6837f9c4ef9a14f52e6d31f54dfb6dd64c3ab997 Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Fri, 4 Jan 2002 22:07:38 +0000 Subject: [PATCH] Fixed the return value for the root key in GetMaxValueNameLength(). svn path=/trunk/; revision=2484 --- rosapps/sysutils/regexpl/RegistryKey.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rosapps/sysutils/regexpl/RegistryKey.cpp b/rosapps/sysutils/regexpl/RegistryKey.cpp index e96f9f63278..f36431039ff 100644 --- a/rosapps/sysutils/regexpl/RegistryKey.cpp +++ b/rosapps/sysutils/regexpl/RegistryKey.cpp @@ -1,4 +1,4 @@ -/* $Id: RegistryKey.cpp,v 1.4 2001/01/13 23:54:40 narnaoud Exp $ +/* $Id: RegistryKey.cpp,v 1.5 2002/01/04 22:07:38 hbirr Exp $ * * regexpl - Console Registry Explorer * @@ -385,6 +385,8 @@ LONG CRegistryKey::GetMaxValueDataSize(DWORD& rdwMaxValueDataBuferSize) LONG CRegistryKey::GetMaxValueNameLength(DWORD& rdwMaxValueNameBuferSize) { + rdwMaxValueNameBuferSize = 0; + if (!m_hKey) return 0; // the root key abstraction has only subkeys (hives)