[WIN32K:ENG] In EngLockDriverObj, properly return NULL when locking failed

CORE-15958
This commit is contained in:
Jérôme Gardou 2021-06-09 18:27:12 +02:00
parent b552901df5
commit e70df4c633

View file

@ -120,7 +120,7 @@ EngLockDriverObj(
pedo = DRIVEROBJ_TryLockObject(hdo);
/* Return pointer to the DRIVEROBJ structure */
return &pedo->drvobj;
return pedo ? &pedo->drvobj : NULL;
}