mirror of
https://github.com/reactos/reactos.git
synced 2026-06-03 17:59:48 +08: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:
@@ -485,6 +485,11 @@ EngDeviceIoControl(
|
||||
|
||||
TRACE("EngDeviceIoControl() called\n");
|
||||
|
||||
if (!hDevice)
|
||||
{
|
||||
return ERROR_INVALID_HANDLE;
|
||||
}
|
||||
|
||||
KeInitializeEvent(&Event, SynchronizationEvent, FALSE);
|
||||
|
||||
DeviceObject = (PDEVICE_OBJECT) hDevice;
|
||||
|
||||
Reference in New Issue
Block a user