VirtualBox

Changeset 123 in vbox for trunk


Ignore:
Timestamp:
Jan 17, 2007 5:07:08 PM (18 years ago)
Author:
vboxsync
Message:

64-bit (I wonder why the old code was so complicated, hope it's not to work around some peculiar problem...)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/xml/cfgldr.cpp

    r1 r123  
    24082408            // remove the curly brackets
    24092409            uuidUtf8[strlen(uuidUtf8) - 1] = '\0';
    2410             rc = RTUuidFromStr(pUUID, (char*)(int)uuidUtf8 + sizeof(char));
     2410            rc = RTUuidFromStr(pUUID, &uuidUtf8[1]);
    24112411        }
    24122412        delete[] uuidUtf8;
     
    24292429    char strUuid[RTUUID_STR_LENGTH + 2 * sizeof(char)];
    24302430    strUuid[0] = '{';
    2431     RTUuidToStr((const PRTUUID)pUuid, (char*)((int)strUuid + sizeof(char)), RTUUID_STR_LENGTH);
     2431    RTUuidToStr((const PRTUUID)pUuid, &strUuid[1], RTUUID_STR_LENGTH);
    24322432    strcat(strUuid, "}");
    24332433    return hnode->SetString (pszName, strUuid, strlen (strUuid), false);
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