From: Vadim Zeitlin Date: Tue, 15 Feb 2000 23:54:25 +0000 (+0000) Subject: bug fix in wxRegKey::CopyValue() X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5af3f0efd5bd600561bf7d7d69838723dea4a33c bug fix in wxRegKey::CopyValue() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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: {