mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
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
This commit is contained in:
parent
b2a69d9d5e
commit
6cdc65dae1
1 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue