mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[WIN32K:ENG] In EngLockDriverObj, properly return NULL when locking failed
CORE-15958
This commit is contained in:
parent
b552901df5
commit
e70df4c633
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ EngLockDriverObj(
|
|||
pedo = DRIVEROBJ_TryLockObject(hdo);
|
||||
|
||||
/* Return pointer to the DRIVEROBJ structure */
|
||||
return &pedo->drvobj;
|
||||
return pedo ? &pedo->drvobj : NULL;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue