1
0
mirror of synced 2025-02-02 04:17:56 +01:00

fix: Message dispatching related build issues

This commit is contained in:
WerWolv 2025-01-27 22:15:39 +01:00
parent 24e7c2f3db
commit f5515417d6
2 changed files with 4 additions and 2 deletions

View File

@ -29,7 +29,7 @@ namespace hex::messaging {
int fifo = open(CommunicationPipePath, O_WRONLY);
if (fifo < 0) return;
::write(fifo, data, dataSize);
std::ignore = ::write(fifo, data, dataSize);
close(fifo);
}

View File

@ -74,7 +74,9 @@ namespace hex {
if (message == nullptr)
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;
}
case WM_SETTINGCHANGE: {