VirtualBox

Changeset 5487 in vbox


Ignore:
Timestamp:
Oct 24, 2007 6:14:10 PM (17 years ago)
Author:
vboxsync
Message:

Update config registration data inner storage for utf-8.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxRegistrationDlg.ui.h

    r5481 r5487  
    9797        /* Decoding data */
    9898        QString result;
    99         for (ulong i = 0; i < data.length(); i += 2)
    100             result += QChar (data.mid (i, 2).toUShort (0, 16));
     99        for (ulong i = 0; i < data.length(); i += 4)
     100            result += QChar (data.mid (i, 4).toUShort (0, 16));
    101101        ulong crcNow = crc32 ((uchar*)result.ascii(), result.length());
    102102
     
    125125        {
    126126            QString curPair = QString::number (data.at (i).unicode(), 16);
    127             if (curPair.length() == 1)
    128                 curPair.prepend ("0");
     127            while (curPair.length() < 4)
     128                curPair.prepend ('0');
    129129            mData += curPair;
    130130        }
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