https://git.reactos.org/?p=reactos.git;a=commitdiff;h=e70df4c633ef7ba78c5e02...
commit e70df4c633ef7ba78c5e02ccb4948c7bfe4f9be2 Author: Jérôme Gardou jerome.gardou@reactos.org AuthorDate: Wed Jun 9 18:27:12 2021 +0200 Commit: Jérôme Gardou jerome.gardou@reactos.org CommitDate: Wed Jun 9 18:27:12 2021 +0200
[WIN32K:ENG] In EngLockDriverObj, properly return NULL when locking failed
CORE-15958 --- win32ss/gdi/eng/driverobj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/win32ss/gdi/eng/driverobj.c b/win32ss/gdi/eng/driverobj.c index f1987df6afa..1a4d772864e 100644 --- a/win32ss/gdi/eng/driverobj.c +++ b/win32ss/gdi/eng/driverobj.c @@ -120,7 +120,7 @@ EngLockDriverObj( pedo = DRIVEROBJ_TryLockObject(hdo);
/* Return pointer to the DRIVEROBJ structure */ - return &pedo->drvobj; + return pedo ? &pedo->drvobj : NULL; }