summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/win32/emu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/win32/emu.cpp b/lib/win32/emu.cpp
index 18a37de7..4c6b2326 100644
--- a/lib/win32/emu.cpp
+++ b/lib/win32/emu.cpp
@@ -410,7 +410,7 @@ std::string ConvertPathToAbsoluteUnicode(const char *pFileName)
// Must be relative. We need to get the
// current directory to make it absolute.
tmpStr += wd;
- if (tmpStr[tmpStr.length()] != '\\')
+ if (tmpStr[tmpStr.length()-1] != '\\')
{
tmpStr += '\\';
}