VirtualBox

Changeset 34441 in vbox


Ignore:
Timestamp:
Nov 28, 2010 11:51:30 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
68214
Message:

A couple of vfs fixes.

Location:
trunk/src/VBox/Runtime/common/vfs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/vfs/vfsbase.cpp

    r34436 r34441  
    947947        AssertReturn(pThis->uMagic == RTVFSOBJ_MAGIC, NIL_RTVFSIOSTREAM);
    948948
    949         if (pThis->pOps->enmType == RTVFSOBJTYPE_IO_STREAM)
     949        if (   pThis->pOps->enmType == RTVFSOBJTYPE_IO_STREAM
     950            || pThis->pOps->enmType == RTVFSOBJTYPE_FILE)
    950951        {
    951952            rtVfsObjRetainVoid(pThis);
  • trunk/src/VBox/Runtime/common/vfs/vfsmemory.cpp

    r34414 r34441  
    743743        RTVFSFILE       hVfsFile;
    744744        PRTVFSMEMFILE   pThis;
    745         rc = RTVfsNewFile(&g_rtVfsStdFileOps, sizeof(*pThis), fFlags, NIL_RTVFS, NIL_RTVFSLOCK, &hVfsFile, (void **)&pThis);
     745        rc = RTVfsNewFile(&g_rtVfsStdFileOps, sizeof(*pThis), fFlags | RTFILE_O_WRITE, NIL_RTVFS, NIL_RTVFSLOCK,
     746                          &hVfsFile, (void **)&pThis);
    746747        if (RT_SUCCESS(rc))
    747748        {
     
    765766            if (RT_SUCCESS(rc))
    766767            {
     768                if (!(fFlags & RTFILE_O_WRITE))
     769                {
     770                    /** @todo clear RTFILE_O_WRITE from the resulting. */
     771                }
    767772                *phVfsFile = hVfsFile;
    768773                return VINF_SUCCESS;
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