mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-19 01:04:20 +00:00
Minor tweaks to MidiMessage, Label. Removed some intel compiler warnings.
This commit is contained in:
parent
7bfa419f17
commit
0a9cbd36c4
24 changed files with 207 additions and 240 deletions
|
|
@ -168,26 +168,16 @@ bool InterprocessConnection::sendMessage (const MemoryBlock& message)
|
|||
messageData.copyFrom (messageHeader, 0, sizeof (messageHeader));
|
||||
messageData.copyFrom (message.getData(), sizeof (messageHeader), message.getSize());
|
||||
|
||||
size_t bytesWritten = 0;
|
||||
int bytesWritten = 0;
|
||||
|
||||
const ScopedLock sl (pipeAndSocketLock);
|
||||
|
||||
if (socket != 0)
|
||||
{
|
||||
bytesWritten = socket->write (messageData.getData(), (int) messageData.getSize());
|
||||
}
|
||||
else if (pipe != 0)
|
||||
{
|
||||
bytesWritten = pipe->write (messageData.getData(), (int) messageData.getSize());
|
||||
}
|
||||
|
||||
if (bytesWritten < 0)
|
||||
{
|
||||
// error..
|
||||
return false;
|
||||
}
|
||||
|
||||
return (bytesWritten == messageData.getSize());
|
||||
return bytesWritten == (int) messageData.getSize();
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue