Changeset 78326 in vbox for trunk/src/VBox/Additions/WINNT/SharedFolders/driver/file.cpp
- Timestamp:
- Apr 26, 2019 2:45:38 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/SharedFolders/driver/file.cpp
r78321 r78326 302 302 ByteCount = ctx.cbData; 303 303 304 Status = VBoxErrorToNTStatus(vrc);304 Status = vbsfNtVBoxStatusToNt(vrc); 305 305 306 306 if (Status != STATUS_SUCCESS) … … 418 418 ByteCount = ctx.cbData; 419 419 420 Status = VBoxErrorToNTStatus(vrc);420 Status = vbsfNtVBoxStatusToNt(vrc); 421 421 422 422 if (Status != STATUS_SUCCESS) … … 516 516 LowIoContext->ParamsFor.Locks.ByteOffset, LowIoContext->ParamsFor.Locks.Length, fu32Lock); 517 517 518 Status = VBoxErrorToNTStatus(vrc);518 Status = vbsfNtVBoxStatusToNt(vrc); 519 519 520 520 Log(("VBOXSF: MRxLocks: Returned 0x%08X\n", Status)); … … 547 547 vrc = VbglR0SfFlush(&g_SfClient, &pNetRootExtension->map, pVBoxFobx->hFile); 548 548 549 Status = VBoxErrorToNTStatus(vrc);549 Status = vbsfNtVBoxStatusToNt(vrc); 550 550 551 551 Log(("VBOXSF: MRxFlush: Returned 0x%08X\n", Status)); … … 553 553 } 554 554 555 NTSTATUS vbsf SetEndOfFile(IN OUT struct _RX_CONTEXT * RxContext,555 NTSTATUS vbsfNtSetEndOfFile(IN OUT struct _RX_CONTEXT * RxContext, 556 556 IN OUT PLARGE_INTEGER pNewFileSize, 557 557 OUT PLARGE_INTEGER pNewAllocationSize) … … 569 569 int vrc; 570 570 571 Log(("VBOXSF: vbsf SetEndOfFile: New size = %RX64 (%p), pNewAllocationSize = %p\n",571 Log(("VBOXSF: vbsfNtSetEndOfFile: New size = %RX64 (%p), pNewAllocationSize = %p\n", 572 572 pNewFileSize->QuadPart, pNewFileSize, pNewAllocationSize)); 573 573 … … 575 575 576 576 cbBuffer = sizeof(SHFLFSOBJINFO); 577 pObjInfo = (SHFLFSOBJINFO *)vbsf AllocNonPagedMem(cbBuffer);577 pObjInfo = (SHFLFSOBJINFO *)vbsfNtAllocNonPagedMem(cbBuffer); 578 578 if (!pObjInfo) 579 579 { … … 588 588 SHFL_INFO_SET | SHFL_INFO_SIZE, &cbBuffer, (PSHFLDIRINFO)pObjInfo); 589 589 590 Log(("VBOXSF: vbsf SetEndOfFile: VbglR0SfFsInfo returned %Rrc\n", vrc));591 592 Status = VBoxErrorToNTStatus(vrc);590 Log(("VBOXSF: vbsfNtSetEndOfFile: VbglR0SfFsInfo returned %Rrc\n", vrc)); 591 592 Status = vbsfNtVBoxStatusToNt(vrc); 593 593 if (Status == STATUS_SUCCESS) 594 594 { 595 Log(("VBOXSF: vbsf SetEndOfFile: VbglR0SfFsInfo new allocation size = %RX64\n",595 Log(("VBOXSF: vbsfNtSetEndOfFile: VbglR0SfFsInfo new allocation size = %RX64\n", 596 596 pObjInfo->cbAllocated)); 597 597 … … 601 601 602 602 if (pObjInfo) 603 vbsf FreeNonPagedMem(pObjInfo);604 605 Log(("VBOXSF: vbsf SetEndOfFile: Returned 0x%08X\n", Status));603 vbsfNtFreeNonPagedMem(pObjInfo); 604 605 Log(("VBOXSF: vbsfNtSetEndOfFile: Returned 0x%08X\n", Status)); 606 606 return Status; 607 607 } … … 618 618 RT_NOREF(RxContext); 619 619 620 /* Note: On Windows hosts vbsf SetEndOfFile returns ACCESS_DENIED if the file has been620 /* Note: On Windows hosts vbsfNtSetEndOfFile returns ACCESS_DENIED if the file has been 621 621 * opened in APPEND mode. Writes to a file will extend it anyway, therefore it is 622 622 * better to not call the host at all and tell the caller that the file was extended.
Note:
See TracChangeset
for help on using the changeset viewer.