]> git.saurik.com Git - wxWidgets.git/commitdiff
bug fix in wxRegKey::CopyValue()
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 15 Feb 2000 23:54:25 +0000 (23:54 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 15 Feb 2000 23:54:25 +0000 (23:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/registry.cpp

index 55b6946d0debef469a70707c9c7a99820ed63381..a3326ec89964cf87dc170c8f583b97a60cead97e 100644 (file)
@@ -444,6 +444,11 @@ bool wxRegKey::CopyValue(const wxChar *szValue,
                          wxRegKey& keyDst,
                          const wxChar *szValueNew)
 {
+    if ( !szValueNew ) {
+        // by default, use the same name
+        szValueNew = szValue;
+    }
+
     switch ( GetValueType(szValue) ) {
         case Type_String:
             {