mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 06:55:55 +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);
|
pedo = DRIVEROBJ_TryLockObject(hdo);
|
||||||
|
|
||||||
/* Return pointer to the DRIVEROBJ structure */
|
/* Return pointer to the DRIVEROBJ structure */
|
||||||
return &pedo->drvobj;
|
return pedo ? &pedo->drvobj : NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue