VirtualBox

Ignore:
Timestamp:
Mar 13, 2019 5:00:36 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
129326
Message:

SharedFolders: Use RTFileOpenEx to get a more accurate SHFL_FILE_EXISTS/SHFL_FILE_CREATED/SHFL_FILE_REPLACED values to return to the guest. ticketref:9276

File:
1 edited

Legend:

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

    r77276 r77685  
    369369static RTFILE testRTFileOpenpFile;
    370370
    371 extern int  testRTFileOpen(PRTFILE pFile, const char *pszFilename, uint64_t fOpen)
     371extern int  testRTFileOpenEx(const char *pszFilename, uint64_t fOpen, PRTFILE phFile, PRTFILEACTION penmActionTaken)
    372372{
    373373 /* RTPrintf("%s, pszFilename=%s, fOpen=0x%llx\n", __PRETTY_FUNCTION__,
     
    377377    if (g_fFailIfNotLowercase && !RTStrIsLowerCased(strpbrk(pszFilename, "/\\")))
    378378        return VERR_FILE_NOT_FOUND;
    379     *pFile = testRTFileOpenpFile;
     379    *phFile = testRTFileOpenpFile;
     380    *penmActionTaken = RTFILEACTION_CREATED;
    380381    testRTFileOpenpFile = 0;
    381382    return VINF_SUCCESS;
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