]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/registry.cpp
help sample useful again
[wxWidgets.git] / 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:
             {