Commit a9f7033f authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Vitaly Lipatov

ntoskrnl.exe: Ignore CProCtrl initialization failure. (eterbug #13361).

parent 75544b51
......@@ -1572,10 +1572,19 @@ NTSTATUS WINAPI IoCreateDriver( UNICODE_STRING *name, PDRIVER_INITIALIZE init )
status = driver->driver_obj.DriverInit( &driver->driver_obj, &driver->driver_extension.ServiceKeyName );
if (status)
{
static const WCHAR cproctrl[] = { '\\','D','r','i','v','e','r','\\','C','P','r','o','C','t','r','l',0 };
if (!lstrcmpiW(name->Buffer, cproctrl))
{
ERR("DriverInit for %s failed: %#x, ignoring\n", debugstr_us(name), status);
goto ignore_cproctrl_failure;
}
IoDeleteDriver( &driver->driver_obj );
return status;
}
ignore_cproctrl_failure:
for (i = 0; i <= IRP_MJ_MAXIMUM_FUNCTION; i++)
{
if (driver->driver_obj.MajorFunction[i]) continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment