mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38:20 +00:00
[client] added missing wait to cursor update thread
This commit is contained in:
parent
c5cbb948e2
commit
c0b2c8e655
@ -185,6 +185,13 @@ int cursorThread(void * unused)
|
|||||||
|
|
||||||
while(state.running)
|
while(state.running)
|
||||||
{
|
{
|
||||||
|
// poll until we have cursor data
|
||||||
|
if(!(state.shm->flags & KVMFR_HEADER_FLAG_CURSOR))
|
||||||
|
{
|
||||||
|
nsleep(100);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// we must take a copy of the header, both to let the guest advance and to
|
// we must take a copy of the header, both to let the guest advance and to
|
||||||
// prevent the contained arguments being abused to overflow buffers
|
// prevent the contained arguments being abused to overflow buffers
|
||||||
memcpy(&header, (KVMFRHeader *)state.shm, sizeof(struct KVMFRHeader));
|
memcpy(&header, (KVMFRHeader *)state.shm, sizeof(struct KVMFRHeader));
|
||||||
|
Loading…
Reference in New Issue
Block a user