mirror of https://github.com/stella-emu/stella.git
Avoid endless loop and heap corruption of doom.
This commit is contained in:
parent
49d3877213
commit
9ac459bf71
|
@ -51,7 +51,7 @@ void FileListWidget::setDirectory(const FilesystemNode& node,
|
|||
|
||||
// Initialize history
|
||||
FilesystemNode tmp = _node;
|
||||
while(tmp.hasParent())
|
||||
while(tmp.hasParent() && !_history.full())
|
||||
{
|
||||
string name = tmp.getName();
|
||||
if(name.back() == '/' || name.back() == '\\')
|
||||
|
|
Loading…
Reference in New Issue