mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 20:17:49 +00:00
I still don't know whether this is the correct fix for WindowsFilesystemNode, but at least with it, one definite and serious bug in the code (using an uninitialised variable) has been fixed, the end result hardly will be worse
svn-id: r22192
This commit is contained in:
parent
5c2dd8da24
commit
cf13cf3a70
@ -158,6 +158,10 @@ WindowsFilesystemNode::WindowsFilesystemNode(const String &p) {
|
|||||||
_isValid = true;
|
_isValid = true;
|
||||||
_isDirectory = ((fileAttribs & FILE_ATTRIBUTE_DIRECTORY) != 0);
|
_isDirectory = ((fileAttribs & FILE_ATTRIBUTE_DIRECTORY) != 0);
|
||||||
}
|
}
|
||||||
|
// FIXME: Is the following correct? Should we maybe check for path being
|
||||||
|
// empty and set it to true in this case?
|
||||||
|
// In any case, not setting _isPseudoRoot at all certainly is a bug.
|
||||||
|
_isPseudoRoot = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
FSList WindowsFilesystemNode::listDir(ListMode mode) const {
|
FSList WindowsFilesystemNode::listDir(ListMode mode) const {
|
||||||
|
Loading…
Reference in New Issue
Block a user