mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 05:51:26 +08:00
[WIN32K:ENG] In EngLockDriverObj, properly return NULL when locking failed
CORE-15958
This commit is contained in:
@@ -120,7 +120,7 @@ EngLockDriverObj(
|
||||
pedo = DRIVEROBJ_TryLockObject(hdo);
|
||||
|
||||
/* Return pointer to the DRIVEROBJ structure */
|
||||
return &pedo->drvobj;
|
||||
return pedo ? &pedo->drvobj : NULL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user