mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
- Eliminate function pointer typecasts in csqtest
- Move the csq.h header to the right place - Added .cvsignore files svn path=/trunk/; revision=8163
This commit is contained in:
parent
b68208f089
commit
9a8ead9623
4 changed files with 19 additions and 9 deletions
5
reactos/drivers/lib/csq/.cvsignore
Normal file
5
reactos/drivers/lib/csq/.cvsignore
Normal file
|
@ -0,0 +1,5 @@
|
|||
*.coff
|
||||
*.sym
|
||||
*.sys
|
||||
*.o
|
||||
*.map
|
5
reactos/drivers/test/csqtest/.cvsignore
Normal file
5
reactos/drivers/test/csqtest/.cvsignore
Normal file
|
@ -0,0 +1,5 @@
|
|||
*.coff
|
||||
*.sym
|
||||
*.sys
|
||||
*.o
|
||||
*.map
|
|
@ -182,16 +182,16 @@ NTSTATUS NTAPI DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING Registry
|
|||
UNICODE_STRING NtName;
|
||||
UNICODE_STRING DosName;
|
||||
|
||||
DriverObject->MajorFunction[IRP_MJ_CREATE] = (PDRIVER_DISPATCH)DispatchCreateCloseCleanup;
|
||||
DriverObject->MajorFunction[IRP_MJ_CLOSE] = (PDRIVER_DISPATCH)DispatchCreateCloseCleanup;
|
||||
DriverObject->MajorFunction[IRP_MJ_CLEANUP] = (PDRIVER_DISPATCH)DispatchCreateCloseCleanup;
|
||||
DriverObject->MajorFunction[IRP_MJ_READ] = (PDRIVER_DISPATCH)DispatchReadWrite;
|
||||
DriverObject->MajorFunction[IRP_MJ_WRITE] = (PDRIVER_DISPATCH)DispatchReadWrite;
|
||||
DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = (PDRIVER_DISPATCH)DispatchIoctl;
|
||||
DriverObject->DriverUnload = (PDRIVER_UNLOAD)Unload;
|
||||
DriverObject->MajorFunction[IRP_MJ_CREATE] = DispatchCreateCloseCleanup;
|
||||
DriverObject->MajorFunction[IRP_MJ_CLOSE] = DispatchCreateCloseCleanup;
|
||||
DriverObject->MajorFunction[IRP_MJ_CLEANUP] = DispatchCreateCloseCleanup;
|
||||
DriverObject->MajorFunction[IRP_MJ_READ] = DispatchReadWrite;
|
||||
DriverObject->MajorFunction[IRP_MJ_WRITE] = DispatchReadWrite;
|
||||
DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = DispatchIoctl;
|
||||
DriverObject->DriverUnload = Unload;
|
||||
|
||||
Status = IoCsqInitialize(&Csq, (PIO_CSQ_INSERT_IRP)CsqInsertIrp, CsqRemoveIrp, CsqPeekNextIrp,
|
||||
CsqAcquireLock, (PIO_CSQ_RELEASE_LOCK)CsqReleaseLock, CsqCompleteCancelledIrp);
|
||||
Status = IoCsqInitialize(&Csq, CsqInsertIrp, CsqRemoveIrp, CsqPeekNextIrp,
|
||||
CsqAcquireLock, CsqReleaseLock, CsqCompleteCancelledIrp);
|
||||
|
||||
if(Status != STATUS_SUCCESS)
|
||||
KdPrint(("csqtest: IoCsqInitalize failed: 0x%x\n", Status));
|
||||
|
|
Loading…
Reference in a new issue