VirtualBox

Ignore:
Timestamp:
Nov 5, 2008 2:34:43 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
38826
Message:

s/VBOX_SUCCESS/RT_SUCCESS/g s/VBOX_FAILURE/RT_FAILURE/g - VBOX_SUCCESS and VBOX_FAILURE have *NOT* been retired (because old habbits die hard) just sligtly deprecated.

Location:
trunk/src/VBox/HostServices/SharedFolders
Files:
4 edited

Legend:

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

    r8155 r13835  
    8686            AssertRC(rc);
    8787
    88             if (VBOX_SUCCESS(rc))
     88            if (RT_SUCCESS(rc))
    8989            {
    9090                rc = RTStrUtf8ToCurrentCP(&asciiroot, utf8Root);
    91                 if (VBOX_SUCCESS(rc))
     91                if (RT_SUCCESS(rc))
    9292                {
    9393                    rc = RTFsQueryProperties(asciiroot, &prop);
     
    9797                RTStrFree(utf8Root);
    9898            }
    99             FolderMapping[i].fHostCaseSensitive = VBOX_SUCCESS(rc) ? prop.fCaseSensitive : false;
     99            FolderMapping[i].fHostCaseSensitive = RT_SUCCESS(rc) ? prop.fCaseSensitive : false;
    100100            break;
    101101        }
     
    303303
    304304        rc = RTStrToUtf16 ((const char *) pszMapName->String.utf8, &utf16Name);
    305         if (VBOX_FAILURE (rc))
     305        if (RT_FAILURE (rc))
    306306            return rc;
    307307
  • trunk/src/VBox/HostServices/SharedFolders/service.cpp

    r10529 r13835  
    341341                    rc = vbsfMappingsQuery (pClient, pMappings, &cMappings);
    342342
    343                     if (VBOX_SUCCESS(rc))
     343                    if (RT_SUCCESS(rc))
    344344                    {
    345345                        /* Update parameters.*/
     
    386386                    rc = vbsfMappingsQueryName (pClient, root, pString);
    387387
    388                     if (VBOX_SUCCESS(rc))
     388                    if (RT_SUCCESS(rc))
    389389                    {
    390390                        /* Update parameters.*/
     
    437437                    rc = vbsfCreate (pClient, root, pPath, cbPath, pParms);
    438438
    439                     if (VBOX_SUCCESS(rc))
     439                    if (RT_SUCCESS(rc))
    440440                    {
    441441                        /* Update parameters.*/
     
    485485                    rc = vbsfClose (pClient, root, Handle);
    486486
    487                     if (VBOX_SUCCESS(rc))
     487                    if (RT_SUCCESS(rc))
    488488                    {
    489489                        /* Update parameters.*/
     
    548548                        pStatusLed->Actual.s.fReading = 0;
    549549
    550                     if (VBOX_SUCCESS(rc))
     550                    if (RT_SUCCESS(rc))
    551551                    {
    552552                        /* Update parameters.*/
     
    613613                        pStatusLed->Actual.s.fWriting = 0;
    614614
    615                     if (VBOX_SUCCESS(rc))
     615                    if (RT_SUCCESS(rc))
    616616                    {
    617617                        /* Update parameters.*/
     
    689689                        rc = vbsfLock(pClient, root, Handle, offset, length, flags);
    690690
    691                     if (VBOX_SUCCESS(rc))
     691                    if (RT_SUCCESS(rc))
    692692                    {
    693693                        /* Update parameters.*/
     
    756756                        rc = VINF_SUCCESS; /* Successfully return these files. */
    757757
    758                     if (VBOX_SUCCESS(rc))
     758                    if (RT_SUCCESS(rc))
    759759                    {
    760760                        /* Update parameters.*/
     
    801801                rc = vbsfMapFolder (pClient, pszMapName, delimiter, false,  &root);
    802802
    803                 if (VBOX_SUCCESS(rc))
     803                if (RT_SUCCESS(rc))
    804804                {
    805805                    /* Update parameters.*/
     
    844844                rc = vbsfMapFolder (pClient, pszMapName, delimiter, fCaseSensitive, &root);
    845845
    846                 if (VBOX_SUCCESS(rc))
     846                if (RT_SUCCESS(rc))
    847847                {
    848848                    /* Update parameters.*/
     
    880880                rc = vbsfUnmapFolder (pClient, root);
    881881
    882                 if (VBOX_SUCCESS(rc))
     882                if (RT_SUCCESS(rc))
    883883                {
    884884                    /* Update parameters.*/
     
    925925                    rc = vbsfQueryFSInfo (pClient, root, Handle, flags, &length, pBuffer);
    926926
    927                 if (VBOX_SUCCESS(rc))
     927                if (RT_SUCCESS(rc))
    928928                {
    929929                    /* Update parameters.*/
     
    974974
    975975                    rc = vbsfRemove (pClient, root, pPath, cbPath, flags);
    976                     if (VBOX_SUCCESS(rc))
     976                    if (RT_SUCCESS(rc))
    977977                    {
    978978                        /* Update parameters.*/
     
    10221022                    /* Execute the function. */
    10231023                    rc = vbsfRename (pClient, root, pSrc, pDest, flags);
    1024                     if (VBOX_SUCCESS(rc))
     1024                    if (RT_SUCCESS(rc))
    10251025                    {
    10261026                        /* Update parameters.*/
     
    10711071                    rc = vbsfFlush (pClient, root, Handle);
    10721072
    1073                     if (VBOX_SUCCESS(rc))
     1073                    if (RT_SUCCESS(rc))
    10741074                    {
    10751075                        /* Nothing to do */
     
    10961096
    10971097    if (   !fAsynchronousProcessing
    1098         || VBOX_FAILURE (rc))
     1098        || RT_FAILURE (rc))
    10991099    {
    1100         /* Complete the operation if it was unsuccessful or 
     1100        /* Complete the operation if it was unsuccessful or
    11011101         * it was processed synchronously.
    11021102         */
     
    11721172                rc = vbsfMappingsAdd (pFolderName, pMapName, fWritable);
    11731173
    1174                 if (VBOX_SUCCESS(rc))
     1174                if (RT_SUCCESS(rc))
    11751175                {
    11761176                    /* Update parameters.*/
     
    12171217                rc = vbsfMappingsRemove (pString);
    12181218
    1219                 if (VBOX_SUCCESS(rc))
     1219                if (RT_SUCCESS(rc))
    12201220                {
    12211221                    /* Update parameters.*/
  • trunk/src/VBox/HostServices/SharedFolders/testcase/tstShflCase.cpp

    r8155 r13835  
    5252static int iDirFile = 0;
    5353
    54 static const char *pszDirList[] = 
     54static const char *pszDirList[] =
    5555{
    5656"c:",
     
    5959};
    6060
    61 static const char *pszDirListC[] = 
     61static const char *pszDirListC[] =
    6262{
    6363".",
     
    6666};
    6767
    68 static const char *pszDirListTestdir[] = 
     68static const char *pszDirListTestdir[] =
    6969{
    7070".",
     
    8585};
    8686
    87 static const char *pszDirListSUBDIR[] = 
     87static const char *pszDirListSUBDIR[] =
    8888{
    8989".",
     
    163163            return VINF_SUCCESS;
    164164    }
    165    
     165
    166166    switch(iDirList)
    167167    {
     
    221221    rc = RTDirOpenFiltered (&hSearch, pDirEntry->szName, RTDIRFILTER_WINNT);
    222222    *(pszStartComponent-1) = RTPATH_DELIMITER;
    223     if (VBOX_FAILURE(rc))
     223    if (RT_FAILURE(rc))
    224224        goto end;
    225225
     
    251251        }
    252252    }
    253     if (VBOX_FAILURE(rc))
     253    if (RT_FAILURE(rc))
    254254        Log(("vbsfCorrectCasing %s failed with %d\n", pszStartComponent, rc));
    255255
     
    313313        uint32_t len = strlen(pszFullPath);
    314314        char    *src = pszFullPath + len - 1;
    315        
     315
    316316        Log(("Handle case insenstive guest fs on top of host case sensitive fs for %s\n", pszFullPath));
    317317
     
    337337            src--;
    338338        }
    339         Assert(*src == RTPATH_DELIMITER && VBOX_SUCCESS(rc));
    340         if (    *src == RTPATH_DELIMITER 
    341             &&  VBOX_SUCCESS(rc))
     339        Assert(*src == RTPATH_DELIMITER && RT_SUCCESS(rc));
     340        if (    *src == RTPATH_DELIMITER
     341            &&  RT_SUCCESS(rc))
    342342        {
    343343            src++;
     
    366366                else
    367367                    rc = VERR_FILE_NOT_FOUND;
    368            
     368
    369369                if (rc == VERR_FILE_NOT_FOUND || rc == VERR_PATH_NOT_FOUND)
    370370                {
    371371                    /* path component is invalid; try to correct the casing */
    372372                    rc = vbsfCorrectCasing(pszFullPath, src);
    373                     if (VBOX_FAILURE(rc))
     373                    if (RT_FAILURE(rc))
    374374                    {
    375375                        if (!fEndOfString)
     
    385385                src = end + 1;
    386386            }
    387             if (VBOX_FAILURE(rc))
     387            if (RT_FAILURE(rc))
    388388                Log(("Unable to find suitable component rc=%d\n", rc));
    389389        }
     
    395395        *pszWildCardComponent = RTPATH_DELIMITER;
    396396
    397     if (VBOX_SUCCESS(rc))
     397    if (RT_SUCCESS(rc))
    398398        Log(("New valid path %s\n", pszFullPath));
    399399    else
  • trunk/src/VBox/HostServices/SharedFolders/vbsf.cpp

    r9927 r13835  
    130130    rc = RTDirOpenFiltered (&hSearch, pDirEntry->szName, RTDIRFILTER_WINNT);
    131131    *(pszStartComponent-1) = RTPATH_DELIMITER;
    132     if (VBOX_FAILURE(rc))
     132    if (RT_FAILURE(rc))
    133133        goto end;
    134134
     
    162162
    163163end:
    164     if (VBOX_FAILURE(rc))
     164    if (RT_FAILURE(rc))
    165165        Log(("vbsfCorrectCasing %s failed with %d\n", pszStartComponent, rc));
    166166
     
    196196
    197197        rc = RTUtf16ToUtf8 (pwszRoot, &utf8Root);
    198         if (VBOX_SUCCESS (rc))
     198        if (RT_SUCCESS (rc))
    199199        {
    200200            size_t cbUtf8Root, cbUtf8FullPath;
     
    289289
    290290            rc = RTUtf16ToUtf8Ex (pwszRoot, RTSTR_MAX, &pszFullPath, cb, NULL);
    291             if (VBOX_FAILURE(rc))
     291            if (RT_FAILURE(rc))
    292292            {
    293293                AssertFailed();
     
    336336
    337337                rc = RTUtf16ToUtf8Ex (src, RTSTR_MAX, &dst, cb, NULL);
    338                 if (VBOX_FAILURE(rc))
     338                if (RT_FAILURE(rc))
    339339                {
    340340                    AssertFailed();
     
    363363    }
    364364
    365     if (VBOX_SUCCESS (rc))
     365    if (RT_SUCCESS (rc))
    366366    {
    367367        /* When the host file system is case sensitive and the guest expects a case insensitive fs, then problems can occur */
     
    438438                    src--;
    439439                }
    440                 Assert(*src == RTPATH_DELIMITER && VBOX_SUCCESS(rc));
     440                Assert(*src == RTPATH_DELIMITER && RT_SUCCESS(rc));
    441441                if (    *src == RTPATH_DELIMITER
    442                     &&  VBOX_SUCCESS(rc))
     442                    &&  RT_SUCCESS(rc))
    443443                {
    444444                    src++;
     
    472472                            /* path component is invalid; try to correct the casing */
    473473                            rc = vbsfCorrectCasing(pszFullPath, src);
    474                             if (VBOX_FAILURE(rc))
     474                            if (RT_FAILURE(rc))
    475475                            {
    476476                                if (!fEndOfString)
     
    486486                        src = end + 1;
    487487                    }
    488                     if (VBOX_FAILURE(rc))
     488                    if (RT_FAILURE(rc))
    489489                        Log(("Unable to find suitable component rc=%d\n", rc));
    490490                }
     
    10451045    rc = vbsfBuildFullPath (pClient, root, pPath, cbPath, &pszFullPath, &cbFullPathRoot);
    10461046
    1047     if (VBOX_SUCCESS (rc))
     1047    if (RT_SUCCESS (rc))
    10481048    {
    10491049        /* Reset return values in case client forgot to do so. */
     
    12991299            rc = vbsfBuildFullPath (pClient, root, pPath, pPath->u16Size, &pszFullPath, NULL, true);
    13001300
    1301             if (VBOX_SUCCESS (rc))
     1301            if (RT_SUCCESS (rc))
    13021302            {
    13031303                rc = RTDirOpenFiltered (&pHandle->dir.SearchHandle, pszFullPath, RTDIRFILTER_WINNT);
     
    13061306                vbsfFreeFullPath(pszFullPath);
    13071307
    1308                 if (VBOX_FAILURE (rc))
     1308                if (RT_FAILURE (rc))
    13091309                    goto end;
    13101310            }
     
    16281628    rc = vbsfBuildFullPath (pClient, root, &dummy, 0, &pszFullPath, NULL);
    16291629
    1630     if (VBOX_SUCCESS (rc))
     1630    if (RT_SUCCESS (rc))
    16311631    {
    16321632        rc = RTFsQuerySizes(pszFullPath, &pSFDEntry->ullTotalAllocationBytes, &pSFDEntry->ullAvailableAllocationBytes, &pSFDEntry->ulBytesPerAllocationUnit, &pSFDEntry->ulBytesPerSector);
     
    18031803
    18041804    rc = vbsfBuildFullPath (pClient, root, pPath, cbPath, &pszFullPath, NULL);
    1805     if (VBOX_SUCCESS (rc))
     1805    if (RT_SUCCESS (rc))
    18061806    {
    18071807        /* is the guest allowed to write to this share? */
     
    18111811            rc = VERR_WRITE_PROTECT;
    18121812
    1813         if (VBOX_SUCCESS (rc))
     1813        if (RT_SUCCESS (rc))
    18141814        {
    18151815            if (flags & SHFL_REMOVE_FILE)
     
    18541854
    18551855    rc = vbsfBuildFullPath (pClient, root, pDest, pDest->u16Size, &pszFullPathDest, NULL);
    1856     if (VBOX_SUCCESS (rc))
     1856    if (RT_SUCCESS (rc))
    18571857    {
    18581858        Log(("Rename %s to %s\n", pszFullPathSrc, pszFullPathDest));
     
    18641864            rc = VERR_WRITE_PROTECT;
    18651865
    1866         if (VBOX_SUCCESS (rc))
     1866        if (RT_SUCCESS (rc))
    18671867        {
    18681868            if (flags & SHFL_RENAME_FILE)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette