mirror of
https://github.com/holub/mame
synced 2025-05-01 20:27:02 +03:00
Another correction
This commit is contained in:
parent
8db5491763
commit
bfbc8d38f1
@ -117,8 +117,8 @@ static void parse_parent_path(const std::string &path, std::string::size_type *b
|
|||||||
std::string::size_type pos;
|
std::string::size_type pos;
|
||||||
|
|
||||||
// skip over trailing path separators
|
// skip over trailing path separators
|
||||||
pos = length - 1;
|
pos = length ? (length - 1) : std::string::npos;
|
||||||
while ((pos > 0) && is_path_separator(path[pos]))
|
while ((pos > 0) && (pos != std::string::npos) && is_path_separator(path[pos]))
|
||||||
pos--;
|
pos--;
|
||||||
|
|
||||||
// return endpos
|
// return endpos
|
||||||
|
Loading…
Reference in New Issue
Block a user