Skip to content

Commit

Permalink
nx-X11/programs/Xserver/hw/nxagent/Events.c: Add pWin NULL point chec…
Browse files Browse the repository at this point in the history
…k before operating on it.
  • Loading branch information
sunweaver committed Nov 23, 2024
1 parent 3e2d18b commit 6e08d43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nx-X11/programs/Xserver/hw/nxagent/Events.c
Original file line number Diff line number Diff line change
Expand Up @@ -4512,7 +4512,7 @@ Bool ForwardClientMessage(ClientPtr client, xSendEventReq *stuff)
WindowPtr pWin = (WindowPtr)SecurityLookupWindow(stuff->destination, client,
DixReadAccess);

if (stuff->event.u.clientMessage.u.l.type == netwmstate || stuff->event.u.clientMessage.u.l.type == wmchangestate)
if (pWin && (stuff->event.u.clientMessage.u.l.type == netwmstate || stuff->event.u.clientMessage.u.l.type == wmchangestate))
{
if (pWin->drawable.id == pWin->drawable.pScreen->root->drawable.id)
{
Expand Down

0 comments on commit 6e08d43

Please sign in to comment.