VirtualBox

Changeset 39859 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Jan 24, 2012 4:50:08 PM (13 years ago)
Author:
vboxsync
Message:

CFGMR3CopyTree: Fix and docs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/CFGM.cpp

    r39853 r39859  
    14131413
    14141414
     1415/**
     1416 * Copies all values and keys from one tree onto another.
     1417 *
     1418 * The flags control what happens to keys and values with the same name
     1419 * existing in both source and destination.
     1420 *
     1421 * @returns VBox status code.
     1422 * @param   pDstTree            The destination tree.
     1423 * @param   pSrcTree            The source tree.
     1424 * @param   fFlags              Copy flags, see CFGM_COPY_FLAGS_XXX.
     1425 */
    14151426VMMR3DECL(int) CFGMR3CopyTree(PCFGMNODE pDstTree, PCFGMNODE pSrcTree, uint32_t fFlags)
    14161427{
     
    14201431    AssertPtrReturn(pSrcTree, VERR_INVALID_POINTER);
    14211432    AssertPtrReturn(pDstTree, VERR_INVALID_POINTER);
    1422     AssertReturn(pDstTree != pDstTree, VERR_INVALID_PARAMETER);
     1433    AssertReturn(pDstTree != pSrcTree, VERR_INVALID_PARAMETER);
    14231434    AssertReturn(!(fFlags & ~(CFGM_COPY_FLAGS_VALUE_DISP_MASK | CFGM_COPY_FLAGS_KEY_DISP_MASK)), VERR_INVALID_PARAMETER);
    14241435    AssertReturn(   (fFlags & CFGM_COPY_FLAGS_VALUE_DISP_MASK) != CFGM_COPY_FLAGS_RESERVED_VALUE_DISP_0
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette