]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/registry.cpp
small change to avoid floating point exception in wxScrolledWindow::Scroll
[wxWidgets.git] / src / msw / registry.cpp
index 9686903c502a6149dfb51722dc924586b0c2edc2..50da59b181e282a98f0df25c7ce6e01d38170f94 100644 (file)
@@ -573,7 +573,7 @@ bool wxRegKey::Copy(wxRegKey& keyDst)
         wxRegKey key(*this, strKey);
         wxString keyName;
         keyName << GetFullName(&keyDst) << REG_SEPARATOR << strKey;
-        ok = key.Copy(keyName);
+        ok = key.Copy((const char*) keyName);
 
         if ( ok )
             bCont = GetNextKey(strKey, lIndex);