mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +00:00
[host] nvfbc: fix null dereference in mouse hook handler
Since we now let the mouse hook linger until the process is killed, the cursor event that the hook signals may now be null, as the capture could have stopped. If the hook fires during this time, a crash occurs.
This commit is contained in:
parent
6a1ec9420e
commit
ec81a353c2
@ -91,6 +91,7 @@ static void on_mouseMove(int x, int y)
|
||||
this->hasMousePosition = true;
|
||||
this->mouseX = x;
|
||||
this->mouseY = y;
|
||||
if (this->cursorEvents[0])
|
||||
lgSignalEvent(this->cursorEvents[0]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user