mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-19 21:50:39 -06:00
BUG: Fix error conditions
This commit is contained in:
@@ -211,7 +211,7 @@ bool Registry::ReadValue(const char *subkey,
|
||||
const char **value)
|
||||
{
|
||||
*value = 0;
|
||||
bool res = true;
|
||||
bool res = false;
|
||||
bool open = false;
|
||||
if ( ! value )
|
||||
{
|
||||
@@ -241,7 +241,7 @@ bool Registry::ReadValue(const char *subkey,
|
||||
//----------------------------------------------------------------------------
|
||||
bool Registry::DeleteKey(const char *subkey, const char *key)
|
||||
{
|
||||
bool res = true;
|
||||
bool res = false;
|
||||
bool open = false;
|
||||
if ( !m_Opened )
|
||||
{
|
||||
@@ -272,7 +272,7 @@ bool Registry::DeleteKey(const char *subkey, const char *key)
|
||||
//----------------------------------------------------------------------------
|
||||
bool Registry::DeleteValue(const char *subkey, const char *key)
|
||||
{
|
||||
bool res = true;
|
||||
bool res = false;
|
||||
bool open = false;
|
||||
if ( !m_Opened )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user