Author: hpoussin Date: Fri Jul 21 23:49:32 2006 New Revision: 23215
URL: http://svn.reactos.org/svn/reactos?rev=23215&view=rev Log: Add a hack to be able to use serial mice again (IRP_MJ_CLOSE is not set after IoGetDeviceObjectPointer() + ObDereferenceObject())
Modified: trunk/reactos/ntoskrnl/io/iomgr/deviface.c
Modified: trunk/reactos/ntoskrnl/io/iomgr/deviface.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/iomgr/deviface.... ============================================================================== --- trunk/reactos/ntoskrnl/io/iomgr/deviface.c (original) +++ trunk/reactos/ntoskrnl/io/iomgr/deviface.c Fri Jul 21 23:49:32 2006 @@ -1000,6 +1000,14 @@
ObDereferenceObject(FileObject);
+ /* hpoussin, July 2006. Dereferencing the FileObject once + * is not enough to trigger the sending of IRP_MJ_CLEANUP. + * So, do it once more... According to Alex, it's because + * FileObjects should start with a ref count of 1 instead + * of 2 at the moment... + */ + ObDereferenceObject(FileObject); + return STATUS_SUCCESS; }