mirror of
https://github.com/reactos/reactos.git
synced 2025-04-21 12:40:33 +00:00
Fix stack corruption
svn path=/trunk/; revision=27947
This commit is contained in:
parent
85928f924c
commit
bcacb656fe
1 changed files with 1 additions and 2 deletions
|
@ -190,8 +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);
|
||||||
|
|
||||||
buffer[len] = 0;
|
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…
Reference in a new issue