diff options
Diffstat (limited to 'backends/fs/windows/windows-fs.cpp')
| -rw-r--r-- | backends/fs/windows/windows-fs.cpp | 5 | 
1 files changed, 1 insertions, 4 deletions
| diff --git a/backends/fs/windows/windows-fs.cpp b/backends/fs/windows/windows-fs.cpp index 4819d38313..0472f248b2 100644 --- a/backends/fs/windows/windows-fs.cpp +++ b/backends/fs/windows/windows-fs.cpp @@ -65,13 +65,10 @@ static const char *lastPathComponent(const Common::String &str) {  	const char *start = str.c_str();  	const char *cur = start + str.size() - 2; -	while (cur > start && *cur != '\\') { +	while (cur >= start && *cur != '/') {  		--cur;  	} -	if (cur == start) -		return cur; -  	return cur + 1;  } | 
