VirtualBox

Changeset 63077 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 5, 2016 10:53:36 PM (8 years ago)
Author:
vboxsync
Message:

GA/NT/SharedFolders: warnings

Location:
trunk/src/VBox/Additions/WINNT/SharedFolders/driver
Files:
2 edited

Legend:

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

    r63073 r63077  
    237237    int vboxRC;
    238238
     239#ifdef LOG_ENABLED
    239240    BOOLEAN AsyncIo = BooleanFlagOn(RxContext->Flags, RX_CONTEXT_FLAG_ASYNC_OPERATION);
     241#endif
    240242    LONGLONG FileSize;
    241243
     
    357359    int vboxRC;
    358360
     361#ifdef LOG_ENABLED
    359362    BOOLEAN AsyncIo = BooleanFlagOn(RxContext->Flags, RX_CONTEXT_FLAG_ASYNC_OPERATION);
     363#endif
    360364    LONGLONG FileSize;
    361365
     
    497501}
    498502
    499 NTSTATUS VBoxMRxCompleteBufferingStateChangeRequest(IN OUT PRX_CONTEXT RxContext,
    500                                                     IN OUT PMRX_SRV_OPEN SrvOpen,
    501                                                     IN PVOID pContext)
    502 {
     503NTSTATUS VBoxMRxCompleteBufferingStateChangeRequest(IN OUT PRX_CONTEXT RxContext, IN OUT PMRX_SRV_OPEN SrvOpen,
     504                                                    IN PVOID pvContext)
     505{
     506    RT_NOREF(RxContext, SrvOpen, pvContext);
    503507    Log(("VBOXSF: MRxCompleteBufferingStateChangeRequest: not implemented\n"));
    504508    return STATUS_NOT_IMPLEMENTED;
     
    584588}
    585589
    586 NTSTATUS VBoxMRxExtendStub(IN OUT struct _RX_CONTEXT * RxContext,
    587                            IN OUT PLARGE_INTEGER pNewFileSize,
     590NTSTATUS VBoxMRxExtendStub(IN OUT struct _RX_CONTEXT * RxContext, IN OUT PLARGE_INTEGER pNewFileSize,
    588591                           OUT PLARGE_INTEGER pNewAllocationSize)
    589592{
     593    RT_NOREF(RxContext);
     594
    590595    /* Note: On Windows hosts vbsfSetEndOfFile returns ACCESS_DENIED if the file has been
    591596     *       opened in APPEND mode. Writes to a file will extend it anyway, therefore it is
  • trunk/src/VBox/Additions/WINNT/SharedFolders/driver/info.c

    r62522 r63077  
    14711471        case FilePositionInformation:
    14721472        {
     1473#ifdef LOG_ENABLED
    14731474            PFILE_POSITION_INFORMATION pInfo = (PFILE_POSITION_INFORMATION)pInfoBuffer;
    1474 
    14751475            Log(("VBOXSF: MrxSetFileInfo: FilePositionInformation: CurrentByteOffset = 0x%RX64. Unsupported!\n",
    14761476                 pInfo->CurrentByteOffset.QuadPart));
     1477#endif
    14771478
    14781479            Status = STATUS_INVALID_PARAMETER;
     
    15231524        case FileLinkInformation:
    15241525        {
     1526#ifdef LOG_ENABLED
    15251527            PFILE_LINK_INFORMATION pInfo = (PFILE_LINK_INFORMATION )pInfoBuffer;
    1526 
    15271528            Log(("VBOXSF: MrxSetFileInfo: FileLinkInformation: ReplaceIfExists = %d, RootDirectory = 0x%x = [%.*ls]. Not implemented!\n",
    15281529                 pInfo->ReplaceIfExists, pInfo->RootDirectory, pInfo->FileNameLength / sizeof(WCHAR), pInfo->FileName));
     1530#endif
    15291531
    15301532            Status = STATUS_NOT_IMPLEMENTED;
     
    15341536        case FileRenameInformation:
    15351537        {
     1538#ifdef LOG_ENABLED
    15361539            PFILE_RENAME_INFORMATION pInfo = (PFILE_RENAME_INFORMATION)pInfoBuffer;
    1537 
    15381540            Log(("VBOXSF: MrxSetFileInfo: FileRenameInformation: ReplaceIfExists = %d, RootDirectory = 0x%x = [%.*ls]\n",
    15391541                 pInfo->ReplaceIfExists, pInfo->RootDirectory, pInfo->FileNameLength / sizeof(WCHAR), pInfo->FileName));
     1542#endif
    15401543
    15411544            Status = vbsfRename(RxContext, FileRenameInformation, pInfoBuffer, RxContext->Info.Length);
     
    15601563NTSTATUS VBoxMRxSetFileInfoAtCleanup(IN PRX_CONTEXT RxContext)
    15611564{
     1565    RT_NOREF(RxContext);
    15621566    Log(("VBOXSF: MRxSetFileInfoAtCleanup\n"));
    15631567    return STATUS_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