diff --git a/src/msw/registry.cpp b/src/msw/registry.cpp index 1fcc78c55f..0653504aea 100644 --- a/src/msw/registry.cpp +++ b/src/msw/registry.cpp @@ -210,7 +210,7 @@ wxRegKey::wxRegKey(const wxRegKey& keyParent, const wxString& strKey) : m_strKey(keyParent.m_strKey) { // combine our name with parent's to get the full name - if ( !strKey.IsEmpty() && strKey[0] != REG_SEPARATOR ) + if ( !m_strKey.IsEmpty() && strKey[0] != REG_SEPARATOR ) m_strKey += REG_SEPARATOR; m_strKey += strKey;