VirtualBox

Changeset 1307 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Mar 7, 2007 4:53:15 PM (18 years ago)
Author:
vboxsync
Message:

Added temps to avoid attempts to free bogus (because modified) pointers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/path.cpp

    r1 r1307  
    283283
    284284    int iDiff = 0;
     285    PRTUNICP puszTmpPath1 = puszPath1;
     286    PRTUNICP puszTmpPath2 = puszPath2;
    285287    for (;;)
    286288    {
    287         register RTUNICP uc1 = *puszPath1;
    288         register RTUNICP uc2 = *puszPath2;
     289        register RTUNICP uc1 = *puszTmpPath1;
     290        register RTUNICP uc2 = *puszTmpPath2;
    289291        if (uc1 != uc2)
    290292        {
     
    307309        if (!uc1)
    308310            break;
    309         puszPath1++;
    310         puszPath2++;
     311        puszTmpPath1++;
     312        puszTmpPath2++;
    311313
    312314    }
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