VirtualBox

Changeset 9927 in vbox


Ignore:
Timestamp:
Jun 25, 2008 3:03:04 PM (17 years ago)
Author:
vboxsync
Message:

@todo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedFolders/vbsf.cpp

    r9880 r9927  
    236236    {
    237237#ifdef RT_OS_DARWIN
     238/** @todo This belongs in rtPathToNative or in the windows shared folder file system driver...
     239 * The question is simply whether the NFD normalization is actually applied on a (virtaul) file
     240 * system level in darwin, or just by the user mode application libs. */
    238241                SHFLSTRING *pPathParameter = pPath;
    239242                size_t cbPathLength;
     
    241244                uint16_t ucs2Length;
    242245                CFRange rangeCharacters;
    243                
     246
    244247                // Is 8 times length enough for decomposed in worst case...?
    245248                cbPathLength = sizeof(SHFLSTRING) + pPathParameter->u16Length * 8 + 2;
     
    251254                        return rc;
    252255                }
    253                
     256
    254257                ::CFStringAppendCharacters(inStr, (UniChar*)pPathParameter->String.ucs2, pPathParameter->u16Length / sizeof(pPathParameter->String.ucs2[0]));
    255258                ::CFStringNormalize(inStr, kCFStringNormalizationFormD);
    256259                ucs2Length = ::CFStringGetLength(inStr);
    257                
     260
    258261                rangeCharacters.location = 0;
    259262                rangeCharacters.length = ucs2Length;
     
    262265                pPath->u16Length = ucs2Length * sizeof(pPath->String.ucs2[0]);
    263266                pPath->u16Size = pPath->u16Length + sizeof(pPath->String.ucs2[0]);
    264                
     267
    265268                CFRelease(inStr);
    266269#endif
     
    13871390
    13881391#ifdef RT_OS_DARWIN
     1392/** @todo This belongs in rtPathToNative or in the windows shared folder file system driver...
     1393 * The question is simply whether the NFD normalization is actually applied on a (virtaul) file
     1394 * system level in darwin, or just by the user mode application libs. */
    13891395                        {
    13901396                                // Convert to
     
    13951401                                CFRange rangeCharacters;
    13961402                                CFMutableStringRef inStr = ::CFStringCreateMutable(NULL, 0);
    1397                                
     1403
    13981404                                ::CFStringAppendCharacters(inStr, (UniChar *)pwszString, RTUtf16Len (pwszString));
    13991405                                ::CFStringNormalize(inStr, kCFStringNormalizationFormC);
    14001406                                ucs2Length = ::CFStringGetLength(inStr);
    1401                                
     1407
    14021408                                rangeCharacters.location = 0;
    14031409                                rangeCharacters.length = ucs2Length;
    14041410                                ::CFStringGetCharacters(inStr, rangeCharacters, pwszString);
    14051411                                pwszString[ucs2Length] = 0x0000; // NULL terminated
    1406                                
     1412
    14071413                                CFRelease(inStr);
    14081414                        }
     
    14351441    }
    14361442    Assert(rc != VINF_SUCCESS || *pcbBuffer > 0);
    1437    
     1443
    14381444end:
    14391445    if (pDirEntry)
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