From 5af3f0efd5bd600561bf7d7d69838723dea4a33c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 15 Feb 2000 23:54:25 +0000 Subject: [PATCH] bug fix in wxRegKey::CopyValue() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/registry.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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: {