Author: weiden
Date: Sat Jul 28 19:47:56 2007
New Revision: 27950
URL:
http://svn.reactos.org/svn/reactos?rev=27950&view=rev
Log:
Also hand 0 read bytes to XML_Parse to make sure we always signal that we're done
reading the document
Modified:
trunk/rosapps/downloader/xml.c
Modified: trunk/rosapps/downloader/xml.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/downloader/xml.c?rev=27950…
==============================================================================
--- trunk/rosapps/downloader/xml.c (original)
+++ trunk/rosapps/downloader/xml.c Sat Jul 28 19:47:56 2007
@@ -190,7 +190,7 @@
size_t len = fread (buffer, 1, sizeof(buffer), file);
done = len < sizeof(buffer);
- if(len > 0 && !XML_Parse(parser, buffer, len, done))
+ if(!XML_Parse(parser, buffer, len, done))
{
MessageBoxW(0,Strings[IDS_XMLERROR_2],0,0);
return FALSE;