mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 14:57:20 +00:00
[obs] fix oob cursor writes
This commit is contained in:
parent
1462ab0cb4
commit
6058a0e243
2
obs/lg.c
2
obs/lg.c
@ -244,7 +244,7 @@ static void * pointerThread(void * data)
|
|||||||
|
|
||||||
const uint32_t * s = (const uint32_t *)data;
|
const uint32_t * s = (const uint32_t *)data;
|
||||||
uint32_t * d = this->cursorData;
|
uint32_t * d = this->cursorData;
|
||||||
for(int i = 0; i < dataSize; ++i, ++s, ++d)
|
for(int i = 0; i < dataSize / sizeof(uint32_t); ++i, ++s, ++d)
|
||||||
*d = (*s & ~0xFF000000) | (*s & 0xFF000000 ? 0x0 : 0xFF000000);
|
*d = (*s & ~0xFF000000) | (*s & 0xFF000000 ? 0x0 : 0xFF000000);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user