VirtualBox

Changeset 63078 in vbox


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

GA/NT/SharedFolders: warnings

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

Legend:

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

    r63077 r63078  
    588588}
    589589
    590 NTSTATUS VBoxMRxExtendStub(IN OUT struct _RX_CONTEXT * RxContext, IN OUT PLARGE_INTEGER pNewFileSize,
    591                            OUT PLARGE_INTEGER pNewAllocationSize)
     590/** See PMRX_EXTENDFILE_CALLDOWN in ddk/mrx.h
     591 *
     592 * Documentation says it returns STATUS_SUCCESS on success and an error
     593 * status on failure, so the ULONG return type is probably just a typo that
     594 * stuck.
     595 */
     596ULONG NTAPI VBoxMRxExtendStub(IN OUT struct _RX_CONTEXT * RxContext, IN OUT PLARGE_INTEGER pNewFileSize,
     597                              OUT PLARGE_INTEGER pNewAllocationSize)
    592598{
    593599    RT_NOREF(RxContext);
     
    604610    return STATUS_SUCCESS;
    605611}
     612
  • trunk/src/VBox/Additions/WINNT/SharedFolders/driver/vbsf.c

    r62522 r63078  
    408408    UNICODE_STRING VBoxMRxName;
    409409    UNICODE_STRING UserModeDeviceName;
    410     PMRX_VBOX_DEVICE_EXTENSION pDeviceExtension;
     410    PMRX_VBOX_DEVICE_EXTENSION pDeviceExtension = NULL;
    411411    ULONG i;
    412412    int vboxRC;
     
    480480        {
    481481            Log(("VBOXSF: DriverEntry: RxRegisterMinirdr failed: 0x%08X\n", Status ));
    482             try_return(Status);
     482            try_return((void)Status);
    483483        }
    484484
     
    512512            Log(("VBOXSF: DriverEntry: IoCreateSymbolicLink: 0x%08X\n",
    513513                 Status));
    514             try_return(Status);
     514            try_return((void)Status);
    515515        }
    516516        Log(("VBOXSF: DriverEntry: Symbolic link created.\n"));
     
    536536    }
    537537
     538    AssertPtr(pDeviceExtension);
    538539    pDeviceExtension->hgcmClient = hgcmClient;
    539540
     
    571572    NTSTATUS Status;
    572573    MRX_VBOX_STATE CurrentState;
     574    RT_NOREF(RxContext, RxDeviceObject);
    573575
    574576    Log(("VBOXSF: MRxStart\n"));
     
    597599NTSTATUS VBoxMRxStop(PRX_CONTEXT RxContext, IN OUT PRDBSS_DEVICE_OBJECT RxDeviceObject)
    598600{
     601    RT_NOREF(RxContext, RxDeviceObject);
    599602    Log(("VBOXSF: MRxStop\n"));
    600603    return STATUS_SUCCESS;
     
    14621465NTSTATUS VBoxMRxSetEaInfo(IN OUT PRX_CONTEXT RxContext)
    14631466{
     1467    RT_NOREF(RxContext);
    14641468    Log(("VBOXSF: MRxSetEaInfo\n"));
    14651469    return STATUS_NOT_IMPLEMENTED;
     
    14681472NTSTATUS VBoxMRxFsCtl (IN OUT PRX_CONTEXT RxContext)
    14691473{
     1474    RT_NOREF(RxContext);
    14701475    Log(("VBOXSF: MRxFsCtl\n"));
    14711476    return STATUS_INVALID_DEVICE_REQUEST;
     
    14741479NTSTATUS VBoxMRxNotifyChangeDirectory(IN OUT PRX_CONTEXT RxContext)
    14751480{
     1481    RT_NOREF(RxContext);
    14761482    Log(("VBOXSF: MRxNotifyChangeDirectory\n"));
    14771483    return STATUS_NOT_IMPLEMENTED;
     
    14801486NTSTATUS VBoxMRxQuerySdInfo(IN OUT PRX_CONTEXT RxContext)
    14811487{
     1488    RT_NOREF(RxContext);
    14821489    Log(("VBOXSF: MRxQuerySdInfo\n"));
    14831490    return STATUS_NOT_IMPLEMENTED;
     
    14861493NTSTATUS VBoxMRxSetSdInfo(IN OUT struct _RX_CONTEXT * RxContext)
    14871494{
     1495    RT_NOREF(RxContext);
    14881496    Log(("VBOXSF: MRxSetSdInfo\n"));
    14891497    return STATUS_NOT_IMPLEMENTED;
     
    14951503NTSTATUS WmlTinySystemControl(IN OUT PVOID pWmiLibInfo, IN PVOID pDevObj, IN PVOID pIrp)
    14961504{
     1505    RT_NOREF(pWmiLibInfo, pDevObj, pIrp);
    14971506    return STATUS_WMI_GUID_NOT_FOUND;
    14981507}
     
    15001509ULONG WmlTrace(IN ULONG ulType, IN PVOID pTraceUuid, IN ULONG64 ullLogger, ...)
    15011510{
     1511    RT_NOREF(ulType, pTraceUuid, ullLogger);
    15021512    return STATUS_SUCCESS;
    15031513}
  • trunk/src/VBox/Additions/WINNT/SharedFolders/driver/vbsf.h

    r63073 r63078  
    155155NTSTATUS VBoxMRxNotifyChangeDirectory(IN OUT PRX_CONTEXT RxContext);
    156156
    157 NTSTATUS VBoxMRxExtendStub(IN OUT struct _RX_CONTEXT * RxContext,
    158                            IN OUT PLARGE_INTEGER pNewFileSize,
    159                            OUT PLARGE_INTEGER pNewAllocationSize);
     157ULONG NTAPI VBoxMRxExtendStub(IN OUT struct _RX_CONTEXT * RxContext,
     158                              IN OUT PLARGE_INTEGER pNewFileSize,
     159                              OUT PLARGE_INTEGER pNewAllocationSize);
    160160NTSTATUS VBoxMRxCompleteBufferingStateChangeRequest(IN OUT PRX_CONTEXT RxContext,
    161161                                                    IN OUT PMRX_SRV_OPEN SrvOpen,
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