Work around wx bug causing update checker to choke on zero-byte data files.

Updates #1071.

Said wx bug @ http://trac.wxwidgets.org/ticket/11596

Originally committed to SVN as r3933.
This commit is contained in:
Niels Martin Hansen 2010-01-04 23:22:28 +00:00
parent 7ac3394aaa
commit a1a84c3fd3
1 changed files with 1 additions and 1 deletions

View File

@ -337,7 +337,7 @@ void AegisubVersionCheckerThread::DoCheck()
AegisubVersionCheckResultEvent result_event;
while (!stream->Eof())
while (!stream->Eof() && stream->GetSize() > 0)
{
wxString line = text.ReadLine();
wxStringTokenizer tkn(line, _T("|"), wxTOKEN_RET_EMPTY_ALL);