mirror of https://github.com/odrling/Aegisub
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:
parent
7ac3394aaa
commit
a1a84c3fd3
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue