diff --git a/src/msw/registry.cpp b/src/msw/registry.cpp index 55b6946d0d..a3326ec899 100644 --- a/src/msw/registry.cpp +++ b/src/msw/registry.cpp @@ -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: {