diff --git a/stepmania/src/RageSoundReader_Resample_Good.cpp b/stepmania/src/RageSoundReader_Resample_Good.cpp index 65c452395d..f4cc9da7ae 100644 --- a/stepmania/src/RageSoundReader_Resample_Good.cpp +++ b/stepmania/src/RageSoundReader_Resample_Good.cpp @@ -193,6 +193,7 @@ struct PolyphaseFilter AlignedBuffer m_fBuf; int m_iBufNext; }; + friend struct State; PolyphaseFilter( int iUpFactor ): m_pPolyphase( L*iUpFactor ) diff --git a/stepmania/src/archutils/Win32/CrashHandlerNetworking.cpp b/stepmania/src/archutils/Win32/CrashHandlerNetworking.cpp index 757dd620db..0d1091f1e6 100644 --- a/stepmania/src/archutils/Win32/CrashHandlerNetworking.cpp +++ b/stepmania/src/archutils/Win32/CrashHandlerNetworking.cpp @@ -674,7 +674,7 @@ void NetworkPostData::HttpThread() RString sResult; while( m_pStream->GetState() == NetworkStream::STATE_CONNECTED ) { - sBuf.clear(); + sBuf.erase( sBuf.begin(), sBuf.end() ); void *p = sBuf.GetBuffer( 1024 ); int iGot = m_pStream->Read( p, 1024 ); if( iGot >= 0 ) @@ -713,7 +713,7 @@ void NetworkPostData::Start( const RString &sHost, int iPort, const RString &sPa m_sHost = sHost; m_iPort = iPort; m_sPath = sPath; - m_sStatus.clear(); + m_sStatus.erase( m_sStatus.begin(), m_sStatus.end() ); m_fProgress = 0; m_Thread.SetName( "HTTP thread" );