VirtualBox

Changeset 63065 in vbox


Ignore:
Timestamp:
Aug 5, 2016 9:38:38 PM (8 years ago)
Author:
vboxsync
Message:

Additions/common: warnings

Location:
trunk/src/VBox/Additions/common
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-win-legacy.cpp

    r62521 r63065  
    5656 *
    5757 * @param   pDrvObj         The driver object.
    58  * @param   pDevObj         Unused. NULL. Dunno why it's here, makes no sense.
    5958 * @param   pRegPath        The driver registry path.
    6059 */
    61 NTSTATUS vgdrvNt4CreateDevice(PDRIVER_OBJECT pDrvObj, PDEVICE_OBJECT pDevObj, PUNICODE_STRING pRegPath)
     60NTSTATUS vgdrvNt4CreateDevice(PDRIVER_OBJECT pDrvObj, PUNICODE_STRING pRegPath)
    6261{
    6362    Log(("vgdrvNt4CreateDevice: pDrvObj=%p, pDevObj=%p, pRegPath=%p\n", pDrvObj, pDevObj, pRegPath));
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-win.cpp

    r62853 r63065  
    209209        pDrvObj->MajorFunction[IRP_MJ_WRITE]                   = vgdrvNtNotSupportedStub;
    210210#ifdef TARGET_NT4
    211         rc = vgdrvNt4CreateDevice(pDrvObj, NULL /* pDevObj */, pRegPath);
     211        rc = vgdrvNt4CreateDevice(pDrvObj, pRegPath);
    212212#else
    213213        pDrvObj->MajorFunction[IRP_MJ_PNP]                     = vgdrvNtPnP;
     
    468468        IoInitializeDpcRequest(pDevExt->pDeviceObject, vgdrvNtDpcHandler);
    469469#ifdef TARGET_NT4
    470         ULONG uInterruptVector;
    471         KIRQL irqLevel;
     470        ULONG uInterruptVector = UINT32_MAX;
     471        KIRQL irqLevel = UINT8_MAX;
    472472        /* Get an interrupt vector. */
    473473        /* Only proceed if the device provides an interrupt. */
     
    622622    UNICODE_STRING DosName;
    623623    RtlInitUnicodeString(&DosName, VBOXGUEST_DEVICE_NAME_DOS);
    624     NTSTATUS rc = IoDeleteSymbolicLink(&DosName);
     624    IoDeleteSymbolicLink(&DosName);
    625625
    626626    IoDeleteDevice(pDrvObj->DeviceObject);
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-win.h

    r62683 r63065  
    148148
    149149#ifdef TARGET_NT4
    150 NTSTATUS   vgdrvNt4CreateDevice(PDRIVER_OBJECT pDrvObj, PDEVICE_OBJECT pDevObj, PUNICODE_STRING pRegPath);
     150NTSTATUS   vgdrvNt4CreateDevice(PDRIVER_OBJECT pDrvObj, PUNICODE_STRING pRegPath);
    151151#else
    152152NTSTATUS   vgdrvNtPnP(PDEVICE_OBJECT pDevObj, PIRP pIrp);
  • trunk/src/VBox/Additions/common/VBoxService/VBoxService-win.cpp

    r62851 r63065  
    197197        return RTEXITCODE_FAILURE;
    198198    }
     199#else
     200    RT_NOREF(hService);
    199201#endif
    200202    return RTEXITCODE_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