mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
Fixed the return value for the root key in GetMaxValueNameLength().
svn path=/trunk/; revision=2484
This commit is contained in:
parent
0d5652813b
commit
6837f9c4ef
1 changed files with 3 additions and 1 deletions
|
@ -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
|
* regexpl - Console Registry Explorer
|
||||||
*
|
*
|
||||||
|
@ -385,6 +385,8 @@ LONG CRegistryKey::GetMaxValueDataSize(DWORD& rdwMaxValueDataBuferSize)
|
||||||
|
|
||||||
LONG CRegistryKey::GetMaxValueNameLength(DWORD& rdwMaxValueNameBuferSize)
|
LONG CRegistryKey::GetMaxValueNameLength(DWORD& rdwMaxValueNameBuferSize)
|
||||||
{
|
{
|
||||||
|
rdwMaxValueNameBuferSize = 0;
|
||||||
|
|
||||||
if (!m_hKey)
|
if (!m_hKey)
|
||||||
return 0; // the root key abstraction has only subkeys (hives)
|
return 0; // the root key abstraction has only subkeys (hives)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue