VirtualBox

Changeset 6310 in vbox


Ignore:
Timestamp:
Jan 9, 2008 6:42:50 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
27179
Message:

Fix formatting bugs in the XML config file code. The number base was
lost, and also signed values would have been stored as unsigned.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/settings.h

    r6104 r6310  
    781781        try
    782782        {
    783             stdx::char_auto_ptr value = ToString (aValue);
     783            stdx::char_auto_ptr value = ToString (aValue, aExtra);
    784784            setStringValue (aName, value.get());
    785785        }
  • trunk/src/VBox/Main/HardDiskImpl.cpp

    r6291 r6310  
    32503250    /* port (optional, defaults to 0) */
    32513251    aStorageNode.setValueOr <USHORT> ("port", mPort, 0);
    3252     /* lun (optional, force 0x format to coform to XML Schema!) */
     3252    /* lun (optional, force 0x format to conform to XML Schema!) */
    32533253    aStorageNode.setValueOr <ULONG64> ("lun", mLun, 0, 16);
    32543254    /* userName (optional) */
  • trunk/src/VBox/Main/xml/Settings.cpp

    r6076 r6310  
    258258    {
    259259        case 8:
    260             flags = RTSTR_F_8BIT;
     260            flags |= RTSTR_F_8BIT;
    261261            break;
    262262        case 16:
    263             flags = RTSTR_F_16BIT;
     263            flags |= RTSTR_F_16BIT;
    264264            break;
    265265        case 32:
    266             flags = RTSTR_F_32BIT;
     266            flags |= RTSTR_F_32BIT;
    267267            break;
    268268        case 64:
    269             flags = RTSTR_F_64BIT;
     269            flags |= RTSTR_F_64BIT;
    270270            break;
    271271        default:
Note: See TracChangeset for help on using the changeset viewer.

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