1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-06 04:00:08 +00:00

Minor tweaks to MidiMessage, Label. Removed some intel compiler warnings.

This commit is contained in:
Julian Storer 2011-01-20 14:23:46 +00:00
parent 7bfa419f17
commit 0a9cbd36c4
24 changed files with 207 additions and 240 deletions

View file

@ -37,8 +37,6 @@
#endif
//==============================================================================
static HINTERNET sessionHandle = 0;
#ifndef WORKAROUND_TIMEOUT_BUG
//#define WORKAROUND_TIMEOUT_BUG 1
#endif
@ -48,8 +46,8 @@ static HINTERNET sessionHandle = 0;
class InternetConnectThread : public Thread
{
public:
InternetConnectThread (URL_COMPONENTS& uc_, HINTERNET& connection_, const bool isFtp_)
: Thread ("Internet"), uc (uc_), connection (connection_), isFtp (isFtp_)
InternetConnectThread (URL_COMPONENTS& uc_, HINTERNET sessionHandle_, HINTERNET& connection_, const bool isFtp_)
: Thread ("Internet"), uc (uc_), sessionHandle (sessionHandle_), connection (connection_), isFtp (isFtp_)
{
startThread();
}
@ -71,6 +69,7 @@ public:
private:
URL_COMPONENTS& uc;
HINTERNET sessionHandle;
HINTERNET& connection;
const bool isFtp;
@ -254,7 +253,7 @@ private:
connection = 0;
{
InternetConnectThread connectThread (uc, connection, isFtp);
InternetConnectThread connectThread (uc, sessionHandle, connection, isFtp);
connectThread.wait (timeOutMs);
if (connection == 0)