fix: Message dispatching related build issues
This commit is contained in:
parent
24e7c2f3db
commit
f5515417d6
@ -29,7 +29,7 @@ namespace hex::messaging {
|
|||||||
int fifo = open(CommunicationPipePath, O_WRONLY);
|
int fifo = open(CommunicationPipePath, O_WRONLY);
|
||||||
if (fifo < 0) return;
|
if (fifo < 0) return;
|
||||||
|
|
||||||
::write(fifo, data, dataSize);
|
std::ignore = ::write(fifo, data, dataSize);
|
||||||
close(fifo);
|
close(fifo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -74,7 +74,9 @@ namespace hex {
|
|||||||
if (message == nullptr)
|
if (message == nullptr)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
EventNativeMessageReceived::post(std::vector<u8>(message->lpData, message->lpData + message->cbData));
|
const auto data = reinterpret_cast<const u8*>(message->lpData);
|
||||||
|
const auto size = message->cbData;
|
||||||
|
EventNativeMessageReceived::post(std::vector<u8>(data, data + size));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case WM_SETTINGCHANGE: {
|
case WM_SETTINGCHANGE: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user