From 68ed1823329bb1195a4aa33deae9501351956ccc Mon Sep 17 00:00:00 2001 From: Alex Ionescu Date: Mon, 14 Nov 2005 22:04:30 +0000 Subject: [PATCH] Catch really weird scenario where we don't have a File Object on our IRP Stack. Added by Elrond. svn path=/trunk/; revision=19230 --- reactos/drivers/fs/np/rw.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reactos/drivers/fs/np/rw.c b/reactos/drivers/fs/np/rw.c index dfd7a2a3393..0676d42d345 100644 --- a/reactos/drivers/fs/np/rw.c +++ b/reactos/drivers/fs/np/rw.c @@ -529,6 +529,8 @@ NpfsRead(IN PDEVICE_OBJECT DeviceObject, } Irp->IoStatus.Information = Information; Irp->IoStatus.Status = Status; + + ASSERT(IoGetCurrentIrpStackLocation(Irp)->FileObject != NULL); if (IoIsOperationSynchronous(Irp)) {