Fix ZIP files in Windows not finding last path correctly.

This commit is contained in:
Stephen Anthony 2020-12-25 17:44:23 -03:30
parent e7d9e56e9c
commit 9d292185c0
2 changed files with 1 additions and 2 deletions

View File

@ -493,7 +493,7 @@ class AbstractFSNode
const char* start = str.c_str();
const char* cur = start + str.size() - 2;
while (cur >= start && *cur != FilesystemNode::PATH_SEPARATOR)
while (cur >= start && !(*cur == '/' || *cur == '\\'))
--cur;
return cur + 1;

View File

@ -127,7 +127,6 @@ void BrowserDialog::show(const string& startpath,
{
const int fontWidth = _font.getMaxCharWidth(),
fontHeight = _font.getFontHeight(),
HBORDER = fontWidth * 1.25,
VGAP = fontHeight / 4;
_mode = mode;