Comment on attachment 622993[details][diff][review]
patch
you could instead use do while and pass in aMore directly to ReadLine, so the code would look like this:
do {
rv = aLineStream->ReadLine(line, aMore);
}
while (line.IsEmpty() && *aMore);
if (!*aMore)
return rv;