Changeset 63066 in vbox for trunk/src/VBox/Additions/WINNT
- Timestamp:
- Aug 5, 2016 9:47:28 PM (8 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Mouse
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Mouse/NT4/VBoxPS2NT.cpp
r62683 r63066 972 972 static VOID CtrlRetriesExceededDpc(PKDPC Dpc, PDEVICE_OBJECT pDevObj, PIRP Irp, PVOID pCtx) 973 973 { 974 NOREF(Dpc); 975 NOREF(pCtx); 976 PDEVEXT pDevExt = (PDEVEXT)pDevObj->DeviceExtension; 974 RT_NOREF(Dpc, pCtx); 977 975 978 976 Irp->IoStatus.Status = STATUS_IO_TIMEOUT; 979 977 980 978 IoStartNextPacket(pDevObj, FALSE); 981 IoCompleteRequest 979 IoCompleteRequest(Irp, IO_KEYBOARD_INCREMENT); 982 980 } 983 981 … … 1091 1089 static VOID CtrlTimeoutDpc(PKDPC Dpc, PDEVICE_OBJECT pDevObj, PVOID SystemContext1, PVOID SystemContext2) 1092 1090 { 1091 RT_NOREF(Dpc, SystemContext1, SystemContext2); 1093 1092 PDEVEXT pDevExt = (PDEVEXT)pDevObj->DeviceExtension; 1094 1093 … … 1574 1573 { 1575 1574 if (pDevExt->KeyboardEnableCount == 0) 1575 { 1576 1576 UCHAR scanCode = I8X_GET_DATA_BYTE(pDevExt->DevRegs[i8042Dat]); 1577 NOREF(scanCode); 1578 } 1577 1579 return FALSE; 1578 1580 } … … 1716 1718 &peripheralType, NULL, 1717 1719 KbdCallOut, pInit); 1720 NOREF(status); /* how diligent of us */ 1718 1721 1719 1722 if (pDevExt->HardwarePresent & KEYBOARD_HARDWARE_PRESENT) … … 1747 1750 PUNICODE_STRING KeyboardDeviceName, PUNICODE_STRING PointerDeviceName) 1748 1751 { 1749 PDEVEXT pDevExt = &pInit->DevExt;1750 1752 NTSTATUS status = STATUS_SUCCESS; 1751 1753 INTERFACE_TYPE interfaceType; … … 1789 1791 BOOLEAN fConflict; 1790 1792 1791 UNICODE_STRING KbdNameFull ;1792 UNICODE_STRING MouNameFull ;1793 UNICODE_STRING KbdNameBase ;1794 UNICODE_STRING MouNameBase ;1795 UNICODE_STRING DevNameSuff ;1796 UNICODE_STRING resourceDeviceClass ;1797 UNICODE_STRING registryPath ;1793 UNICODE_STRING KbdNameFull = { 0, 0, NULL }; 1794 UNICODE_STRING MouNameFull = { 0, 0, NULL }; 1795 UNICODE_STRING KbdNameBase = { 0, 0, NULL }; 1796 UNICODE_STRING MouNameBase = { 0, 0, NULL }; 1797 UNICODE_STRING DevNameSuff = { 0, 0, NULL }; 1798 UNICODE_STRING resourceDeviceClass = { 0, 0, NULL }; 1799 UNICODE_STRING registryPath = { 0, 0, NULL }; 1798 1800 1799 1801 #define NAME_MAX 256 … … 1811 1813 1812 1814 RtlZeroMemory(pInit, sizeof(INITEXT)); 1813 KbdNameFull.MaximumLength = 0;1814 KbdNameFull.Length = 0;1815 MouNameFull.MaximumLength = 0;1816 MouNameFull.Length = 0;1817 DevNameSuff.MaximumLength = 0;1818 DevNameSuff.Length = 0;1819 resourceDeviceClass.MaximumLength = 0;1820 resourceDeviceClass.Length = 0;1821 registryPath.MaximumLength = 0;1822 1815 RtlZeroMemory(keyboardBuffer, NAME_MAX * sizeof(WCHAR)); 1823 1816 KbdNameBase.Buffer = keyboardBuffer; … … 2929 2922 CONFIGURATION_TYPE uPrfType, ULONG uPrfNr, PKEY_VALUE_FULL_INFORMATION *pPrfInf) 2930 2923 { 2924 RT_NOREF(PathName, pBusInf, uCtrlType, uCtrlNr, uPrfType, uPrfNr); 2931 2925 UNICODE_STRING unicodeIdentifier; 2932 2926 GetDevIdentifier(pPrfInf, &unicodeIdentifier); … … 3081 3075 CONFIGURATION_TYPE uPrfType, ULONG uPrfNr, PKEY_VALUE_FULL_INFORMATION *pPrfInf) 3082 3076 { 3077 RT_NOREF(PathName, pBusInf, uCtrlType, uCtrlNr, uPrfType, uPrfNr); 3083 3078 NTSTATUS status = STATUS_SUCCESS; 3084 3079 -
trunk/src/VBox/Additions/WINNT/Mouse/NT5/VBoxMFInternal.cpp
r62522 r63066 1 1 /* $Id$ */ 2 3 2 /** @file 4 3 * VBox Mouse filter internal functions … … 17 16 */ 18 17 18 #undef WIN9X_COMPAT_SPINLOCK 19 19 #define WIN9X_COMPAT_SPINLOCK /* Avoid duplicate _KeInitializeSpinLock@4 error on x86. */ 20 20 #include <iprt/asm.h> … … 79 79 NTSTATUS Status; 80 80 PIRP pIrp; 81 KIRQL Irql = KeGetCurrentIrql(); 82 Assert(Irql == PASSIVE_LEVEL); 81 Assert(KeGetCurrentIrql() == PASSIVE_LEVEL); 83 82 84 83 pIrp = IoBuildDeviceIoControlRequest(uCtl, g_ctx.Gdc.pDo, NULL, 0, NULL, 0, TRUE, pEvent, pIoStatus); … … 119 118 static DECLCALLBACK(void) vboxNewProtMouseEventCb(void *pvContext) 120 119 { 120 RT_NOREF(pvContext); 121 121 PVBOXMOUSE_DEVEXT pDevExt = (PVBOXMOUSE_DEVEXT)ASMAtomicUoReadPtr((void * volatile *)&g_ctx.pCurrentDevExt); 122 122 if (pDevExt)
Note:
See TracChangeset
for help on using the changeset viewer.