VirtualBox

Changeset 11413 in vbox for trunk/src/VBox/Runtime/testcase


Ignore:
Timestamp:
Aug 14, 2008 8:03:03 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
34729
Message:

Runtime: small fix to the UUID code, splitting the ClockSeq field and put the UUID variant in the right place. Rest is cleanup and documenting that the IPRT UUIDs are little endian.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstUuid.cpp

    r11393 r11413  
    9797    Uuid3.au8[14] = 0xdc;
    9898    Uuid3.au8[15] = 0xfe;
    99     Uuid3.Gen.u16ClockSeq = (Uuid3.Gen.u16ClockSeq & 0x3fff) | 0x8000;
     99    Uuid3.Gen.u8ClockSeqHiAndReserved = (Uuid3.Gen.u8ClockSeqHiAndReserved & 0x3f) | 0x80;
    100100    Uuid3.Gen.u16TimeHiAndVersion = (Uuid3.Gen.u16TimeHiAndVersion & 0x0fff) | 0x4000;
    101     const char *pszUuid3 = "67452301-ab89-4fcd-10b2-547698badcfe";
     101    const char *pszUuid3 = "67452301-ab89-4fcd-90b2-547698badcfe";
    102102    rc = RTUuidToStr(&Uuid3, sz, sizeof(sz)); CHECK_RC();
    103103    CHECK_EXPR(strcmp(sz, pszUuid3) == 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