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; }