Fixed null pointer dereference.

This commit is contained in:
Armin Novak 2014-11-17 00:50:15 +01:00
parent ee8563504d
commit b920f9a081

View File

@ -647,6 +647,9 @@ int WLog_AddChild(wLog* parent, wLog* child)
}
}
if (!parent->Children)
return -1;
parent->Children[parent->ChildrenCount++] = child;
child->Parent = parent;
return 0;