]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/registry.cpp
don't log erroneous error messages when writing an empty string to a wxTE_RICH2 control
[wxWidgets.git] / src / msw / registry.cpp
index 75fb41f4aad3b25caac5745193f05b465fffabdd..4d3dc28b9b10f47c45c4031709ba32ede17dcfdb 100644 (file)
@@ -299,7 +299,7 @@ bool wxRegKey::Exists() const
 // returns the full name of the key (prefix is abbreviated if bShortPrefix)
 wxString wxRegKey::GetName(bool bShortPrefix) const
 {
-  StdKey key = GetStdKeyFromHkey((StdKey) m_hRootKey);
+  StdKey key = GetStdKeyFromHkey((WXHKEY) m_hRootKey);
   wxString str = bShortPrefix ? aStdKeys[key].szShortName
                               : aStdKeys[key].szName;
   if ( !m_strKey.IsEmpty() )