mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 17:12:58 +00:00
fixed compiler warnings
svn path=/trunk/; revision=6099
This commit is contained in:
parent
013bfffae8
commit
04b9e7234a
3 changed files with 14 additions and 11 deletions
|
@ -836,10 +836,11 @@ NTSTATUS STDCALL DriverEntry(PDRIVER_OBJECT DriverObject,
|
||||||
|
|
||||||
DPRINT("Keyboard Driver 0.0.4\n");
|
DPRINT("Keyboard Driver 0.0.4\n");
|
||||||
|
|
||||||
DriverObject->MajorFunction[IRP_MJ_CREATE] = KbdDispatch;
|
DriverObject->MajorFunction[IRP_MJ_CREATE] = (PDRIVER_DISPATCH)KbdDispatch;
|
||||||
DriverObject->MajorFunction[IRP_MJ_CLOSE] = KbdDispatch;
|
DriverObject->MajorFunction[IRP_MJ_CLOSE] = (PDRIVER_DISPATCH)KbdDispatch;
|
||||||
DriverObject->MajorFunction[IRP_MJ_READ] = KbdDispatch;
|
DriverObject->MajorFunction[IRP_MJ_READ] = (PDRIVER_DISPATCH)KbdDispatch;
|
||||||
DriverObject->MajorFunction[IRP_MJ_INTERNAL_DEVICE_CONTROL] = KbdInternalDeviceControl;
|
DriverObject->MajorFunction[IRP_MJ_INTERNAL_DEVICE_CONTROL] =
|
||||||
|
(PDRIVER_DISPATCH)KbdInternalDeviceControl;
|
||||||
|
|
||||||
DriverObject->DriverStartIo = KbdStartIo;
|
DriverObject->DriverStartIo = KbdStartIo;
|
||||||
|
|
||||||
|
|
|
@ -321,11 +321,11 @@ DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath)
|
||||||
UNICODE_STRING SymlinkName = UNICODE_STRING_INITIALIZER(L"\\??\\MouseClass"); NTSTATUS Status;
|
UNICODE_STRING SymlinkName = UNICODE_STRING_INITIALIZER(L"\\??\\MouseClass"); NTSTATUS Status;
|
||||||
|
|
||||||
|
|
||||||
DriverObject->MajorFunction[IRP_MJ_CREATE] = MouseClassDispatch;
|
DriverObject->MajorFunction[IRP_MJ_CREATE] = (PDRIVER_DISPATCH)MouseClassDispatch;
|
||||||
// DriverObject->MajorFunction[IRP_MJ_CLOSE] = MouseClassDispatch;
|
// DriverObject->MajorFunction[IRP_MJ_CLOSE] = (PDRIVER_DISPATCH)MouseClassDispatch;
|
||||||
// DriverObject->MajorFunction[IRP_MJ_READ] = MouseClassDispatch;
|
// DriverObject->MajorFunction[IRP_MJ_READ] = (PDRIVER_DISPATCH)MouseClassDispatch;
|
||||||
DriverObject->MajorFunction[IRP_MJ_INTERNAL_DEVICE_CONTROL] = MouseClassInternalDeviceControl; // to get GDI callback
|
DriverObject->MajorFunction[IRP_MJ_INTERNAL_DEVICE_CONTROL] = (PDRIVER_DISPATCH)MouseClassInternalDeviceControl; // to get GDI callback
|
||||||
// DriverObject->DriverStartIo = MouseClassStartIo;
|
// DriverObject->DriverStartIo = (PDRIVER_STARTIO)MouseClassStartIo;
|
||||||
|
|
||||||
Status = IoCreateDevice(DriverObject,
|
Status = IoCreateDevice(DriverObject,
|
||||||
sizeof(DEVICE_EXTENSION),
|
sizeof(DEVICE_EXTENSION),
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
sermouse.coff
|
*.coff
|
||||||
sermouse.sys.unstripped
|
*.o
|
||||||
|
*.sys
|
||||||
|
*.sym
|
||||||
*.map
|
*.map
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue