VirtualBox

Ignore:
Timestamp:
Apr 26, 2019 10:08:31 PM (6 years ago)
Author:
vboxsync
Message:

winnt/vboxsf: Started cleaning up VBoxMRxSetFileInfo. bugref:9172

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/SharedFolders/driver/file.cpp

    r78329 r78338  
    555555
    556556NTSTATUS vbsfNtSetEndOfFile(IN OUT struct _RX_CONTEXT * RxContext,
    557                           IN OUT PLARGE_INTEGER pNewFileSize,
    558                           OUT PLARGE_INTEGER pNewAllocationSize)
     557                            IN uint64_t cbNewFileSize)
    559558{
    560559    NTSTATUS Status = STATUS_SUCCESS;
     
    570569    int vrc;
    571570
    572     Log(("VBOXSF: vbsfNtSetEndOfFile: New size = %RX64 (%p), pNewAllocationSize = %p\n",
    573          pNewFileSize->QuadPart, pNewFileSize, pNewAllocationSize));
     571    Log(("VBOXSF: vbsfNtSetEndOfFile: New size = %RX64\n",
     572         cbNewFileSize));
    574573
    575574    Assert(pVBoxFobx && pNetRootExtension);
     
    584583
    585584    RtlZeroMemory(pObjInfo, cbBuffer);
    586     pObjInfo->cbObject = pNewFileSize->QuadPart;
     585    pObjInfo->cbObject = cbNewFileSize;
    587586
    588587    vrc = VbglR0SfFsInfo(&g_SfClient, &pNetRootExtension->map, pVBoxFobx->hFile,
     
    597596             pObjInfo->cbAllocated));
    598597
    599         /* Return new allocation size */
    600         pNewAllocationSize->QuadPart = pObjInfo->cbAllocated;
     598        /** @todo update the file stats! */
    601599    }
    602600
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