1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2025-04-21 12:27:27 +03:00

Fix rootdir check.

This commit is contained in:
Lars-Peter Clausen
2010-05-03 14:15:15 +02:00
parent 8c31ceeb26
commit dd0c4eb72a
2 changed files with 2 additions and 2 deletions

View File

@@ -181,7 +181,7 @@ bool DirDialog::exec() {
void DirDialog::up() {
string::size_type p = path.rfind("/");
if (p==string::npos || path.substr(0,11)!="/card" || p<4) {
if (p==string::npos || path.compare(0, 5, "/card") != 0 || p<4) {
close = true;
result = false;
} else {