mi: protect against possible NULL-pointer dereference.
This commit is contained in:
parent
874dcdb3bd
commit
d25ffcfbfc
|
@ -470,7 +470,7 @@ miSpriteBlockHandler (int i, pointer blockData, pointer pTimeout,
|
|||
if (DevHasCursor(pDev))
|
||||
{
|
||||
pCursorInfo = MISPRITE(pDev);
|
||||
if (!pCursorInfo->isUp
|
||||
if (pCursorInfo && !pCursorInfo->isUp
|
||||
&& pCursorInfo->pScreen == pScreen
|
||||
&& pCursorInfo->shouldBeUp)
|
||||
{
|
||||
|
@ -484,7 +484,7 @@ miSpriteBlockHandler (int i, pointer blockData, pointer pTimeout,
|
|||
if (DevHasCursor(pDev))
|
||||
{
|
||||
pCursorInfo = MISPRITE(pDev);
|
||||
if (!pCursorInfo->isUp &&
|
||||
if (pCursorInfo && !pCursorInfo->isUp &&
|
||||
pCursorInfo->pScreen == pScreen &&
|
||||
pCursorInfo->shouldBeUp)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue