VirtualBox

Ignore:
Timestamp:
Nov 5, 2008 2:34:43 AM (16 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
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