while (!finished)
{
ch = is->GetC();
- if (ch == EOF)
+ if (is->LastRead() == 0)
return false;
if (ch == '*')
{
// Escaped characters
else if (ch == '\\')
{
- int newCh = is->GetC();
+ char newCh = is->GetC();
if (newCh == '"')
actualCh = '"';
else if (newCh == 10)