mirror of https://gitlab.com/nakst/essence
Fix handle replication logic
DesktopSendMessage duplicates handle before sending copies of the message. Yet it forgets to restore message->device.handle and so message->device.handle has last duplicated handle which may be closed before we actually use it and lead to process crash and kernel panic
This commit is contained in:
parent
e79b5fba79
commit
471b1fe208
|
@ -3213,6 +3213,8 @@ void DesktopSendMessage(EsMessage *message) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message->device.handle = handle;
|
||||||
|
|
||||||
if (message->device.type == ES_DEVICE_CLOCK) {
|
if (message->device.type == ES_DEVICE_CLOCK) {
|
||||||
EsDateComponents reading;
|
EsDateComponents reading;
|
||||||
uint64_t linear;
|
uint64_t linear;
|
||||||
|
|
Loading…
Reference in New Issue