From 869566fc97508695848d5309f16e98ff5a34ee88 Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Tue, 8 Jun 2004 19:31:10 +0000 Subject: [PATCH] - Correctly set Irp->IoStatus.Information when handling IOCTL_BOOTVID_INITIALIZE request. This fixes the occasional page faults during bugchecks when NTOSKRNL:InbvResetDisplay tried to call function pointed by uninitialized variable. svn path=/trunk/; revision=9645 --- reactos/drivers/dd/bootvid/bootvid.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/drivers/dd/bootvid/bootvid.c b/reactos/drivers/dd/bootvid/bootvid.c index fe66b5e6827..16bbd0488e0 100644 --- a/reactos/drivers/dd/bootvid/bootvid.c +++ b/reactos/drivers/dd/bootvid/bootvid.c @@ -18,7 +18,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * - * $Id: bootvid.c,v 1.11 2004/05/22 12:23:12 navaraf Exp $ + * $Id: bootvid.c,v 1.12 2004/06/08 19:31:10 navaraf Exp $ */ /* INCLUDES ******************************************************************/ @@ -605,6 +605,7 @@ VidDispatch(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp) FunctionTable = (NTBOOTVID_FUNCTION_TABLE *) Irp->AssociatedIrp.SystemBuffer; FunctionTable->ResetDisplay = VidResetDisplay; + Irp->IoStatus.Information = sizeof(NTBOOTVID_FUNCTION_TABLE); break; case IOCTL_BOOTVID_CLEANUP: -- 2.17.1