From 6cdc65dae1bd389764cd108b4a3f73722ae3efb5 Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Sat, 10 Dec 2005 14:36:39 +0000 Subject: [PATCH] Until the kernel handle support is finished or bootvid support is rewritten not to use driver objects open & close the handle every time (in the correct context). svn path=/trunk/; revision=20035 --- reactos/ntoskrnl/inbv/inbv.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/reactos/ntoskrnl/inbv/inbv.c b/reactos/ntoskrnl/inbv/inbv.c index a3e3145cc76..1b72f30423c 100755 --- a/reactos/ntoskrnl/inbv/inbv.c +++ b/reactos/ntoskrnl/inbv/inbv.c @@ -119,7 +119,7 @@ InbvEnableBootDriver(IN BOOLEAN Enable) /* Notify the hal we will acquire the display. */ HalAcquireDisplayOwnership(InbvResetDisplayParameters); - Status = NtDeviceIoControlFile(BootVidDevice, + Status = ZwDeviceIoControlFile(BootVidDevice, NULL, NULL, NULL, @@ -138,7 +138,7 @@ InbvEnableBootDriver(IN BOOLEAN Enable) } else { - Status = NtDeviceIoControlFile(BootVidDevice, + Status = ZwDeviceIoControlFile(BootVidDevice, NULL, NULL, NULL, @@ -155,10 +155,10 @@ InbvEnableBootDriver(IN BOOLEAN Enable) BootVidDriverInstalled = FALSE; /* Notify the hal we have released the display. */ HalReleaseDisplayOwnership(); - - NtClose(BootVidDevice); - BootVidDevice = NULL; } + + ZwClose(BootVidDevice); + BootVidDevice = NULL; }