Commit 35e41467 authored by Ulrich Sibiller's avatar Ulrich Sibiller

Window.c: Fix reference before check for null pointer

parent 4a1095ff
......@@ -3122,10 +3122,14 @@ static void nxagentReconfigureWindowCursor(void * param0, XID param1, void * dat
WindowPtr pWin = (WindowPtr)param0;
Bool *pBool = (Bool*)data_buffer;
CursorPtr pCursor;
ScreenPtr pScreen = pWin -> drawable.pScreen;
ScreenPtr pScreen;
if (!pWin || !*pBool || !(pCursor = wCursor(pWin)) ||
!(nxagentCursorPriv(pCursor, pScreen)))
if (!pWin || !*pBool || !(pCursor = wCursor(pWin)))
return;
pScreen = pWin -> drawable.pScreen;
if (!(nxagentCursorPriv(pCursor, pScreen)))
{
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment