mirror of
https://github.com/reactos/reactos.git
synced 2025-07-10 14:44:15 +00:00
Also hand 0 read bytes to XML_Parse to make sure we always signal that we're done reading the document
svn path=/trunk/; revision=27950
This commit is contained in:
parent
9952b46b92
commit
8e88ed96e4
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ BOOL ProcessXML (const char* filename, struct Category* Root)
|
||||||
size_t len = fread (buffer, 1, sizeof(buffer), file);
|
size_t len = fread (buffer, 1, sizeof(buffer), file);
|
||||||
done = len < sizeof(buffer);
|
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);
|
MessageBoxW(0,Strings[IDS_XMLERROR_2],0,0);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue