diff --git a/build/win32/vc8/JUCE.vcproj b/build/win32/vc8/JUCE.vcproj index cb3c82ddf1..40bedb80a1 100644 --- a/build/win32/vc8/JUCE.vcproj +++ b/build/win32/vc8/JUCE.vcproj @@ -1,7 +1,7 @@ 0 + && setsockopt (handle, SOL_SOCKET, SO_RCVBUF, (const char*) &rcvBufSize, sizeof (rcvBufSize)) == 0 + && setsockopt (handle, SOL_SOCKET, SO_SNDBUF, (const char*) &sndBufSize, sizeof (sndBufSize)) == 0 + && (isDatagram ? (setsockopt (handle, SOL_SOCKET, SO_BROADCAST, (const char*) &one, sizeof (one)) == 0) + : (setsockopt (handle, IPPROTO_TCP, TCP_NODELAY, (const char*) &one, sizeof (one)) == 0)); } static bool bindSocketToPort (const int handle, const int port) throw() { - if (handle == 0 || port <= 0) + if (handle <= 0 || port <= 0) return false; struct sockaddr_in servTmpAddr; @@ -11590,6 +11589,9 @@ const String String::replaceSection (int index, const int newStringLen = (stringToInsert != 0) ? CharacterFunctions::length (stringToInsert) : 0; const int newTotalLen = len + newStringLen - numCharsToReplace; + if (newTotalLen <= 0) + return String::empty; + String result (newTotalLen, (int) 0); memcpy (result.text->text, @@ -259976,9 +259978,8 @@ void AudioCDReader::refreshTrackLengths() { } -bool AudioCDReader::read (int** destSamples, - int64 startSampleInFile, - int numSamples) +bool AudioCDReader::readSamples (int** destSamples, int numDestChannels, int startOffsetInDestBuffer, + int64 startSampleInFile, int numSamples) { return false; }