From a1a84c3fd3b449beea2cb3a6acd7fc846a65536a Mon Sep 17 00:00:00 2001 From: Niels Martin Hansen Date: Mon, 4 Jan 2010 23:22:28 +0000 Subject: [PATCH] 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. --- aegisub/src/dialog_version_check.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/dialog_version_check.cpp b/aegisub/src/dialog_version_check.cpp index 5d919b12c..29c3332d2 100644 --- a/aegisub/src/dialog_version_check.cpp +++ b/aegisub/src/dialog_version_check.cpp @@ -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);