mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[WIN32K] Deny deviceless calls to EngDeviceIoControl
This fixes BSOD happening in ntoskrnl coming from win32k under certain conditions with 3rd party display drivers (such as VBox or VMware)
This commit is contained in:
parent
5da008c338
commit
01b580d876
1 changed files with 5 additions and 0 deletions
|
@ -485,6 +485,11 @@ EngDeviceIoControl(
|
|||
|
||||
TRACE("EngDeviceIoControl() called\n");
|
||||
|
||||
if (!hDevice)
|
||||
{
|
||||
return ERROR_INVALID_HANDLE;
|
||||
}
|
||||
|
||||
KeInitializeEvent(&Event, SynchronizationEvent, FALSE);
|
||||
|
||||
DeviceObject = (PDEVICE_OBJECT) hDevice;
|
||||
|
|
Loading…
Reference in a new issue