bug fix in wxRegKey::CopyValue()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
91fc2bdc33
commit
5af3f0efd5
@ -444,6 +444,11 @@ bool wxRegKey::CopyValue(const wxChar *szValue,
|
|||||||
wxRegKey& keyDst,
|
wxRegKey& keyDst,
|
||||||
const wxChar *szValueNew)
|
const wxChar *szValueNew)
|
||||||
{
|
{
|
||||||
|
if ( !szValueNew ) {
|
||||||
|
// by default, use the same name
|
||||||
|
szValueNew = szValue;
|
||||||
|
}
|
||||||
|
|
||||||
switch ( GetValueType(szValue) ) {
|
switch ( GetValueType(szValue) ) {
|
||||||
case Type_String:
|
case Type_String:
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user