Changeset 68556 in vbox for trunk/src/VBox/Additions/WINNT/Mouse/NT5/VBoxMFDriver.cpp
- Timestamp:
- Aug 31, 2017 12:09:59 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Mouse/NT5/VBoxMFDriver.cpp
r62522 r68556 30 30 NOREF(RegistryPath); 31 31 PAGED_CODE(); 32 LOGREL(("DriverEntry:")); 32 33 33 34 int irc = RTR0Init(0); … … 42 43 DriverObject->DriverExtension->AddDevice = VBoxDrvAddDevice; 43 44 44 for (int i=0; i<=IRP_MJ_MAXIMUM_FUNCTION; ++i) 45 { 45 for (int i = 0; i <= IRP_MJ_MAXIMUM_FUNCTION; ++i) 46 46 DriverObject->MajorFunction[i] = VBoxIrpPassthrough; 47 }48 49 47 DriverObject->MajorFunction[IRP_MJ_INTERNAL_DEVICE_CONTROL] = VBoxIrpInternalIOCTL; 50 DriverObject->MajorFunction[IRP_MJ_PNP] = VBoxIrpPnP; 51 DriverObject->MajorFunction[IRP_MJ_POWER] = VBoxIrpPower; 52 53 NTSTATUS tmpStatus = VBoxNewProtInit(); 54 if (!NT_SUCCESS(tmpStatus)) 55 { 56 WARN(("VBoxNewProtInit failed Status (0x%x)", tmpStatus)); 57 } 58 48 DriverObject->MajorFunction[IRP_MJ_PNP] = VBoxIrpPnP; 49 DriverObject->MajorFunction[IRP_MJ_POWER] = VBoxIrpPower; 50 51 VBoxMouFltInitGlobals(); 59 52 LOGF_LEAVE(); 60 53 return STATUS_SUCCESS; … … 67 60 LOGF_ENTER(); 68 61 69 NTSTATUS tmpStatus = VBoxNewProtTerm(); 70 if (!NT_SUCCESS(tmpStatus)) 71 { 72 WARN(("VBoxNewProtTerm failed Status (0x%x)", tmpStatus)); 73 } 74 75 62 VBoxMouFltDeleteGlobals(); 76 63 RTR0Term(); 77 64 }
Note:
See TracChangeset
for help on using the changeset viewer.