Fixed stack traces for win32 (#2642).

This commit is contained in:
hiker
2017-08-15 23:54:39 +10:00
parent 8fa0e4e7b3
commit 01be800253

View File

@@ -193,8 +193,8 @@
}
// Only keep the directory
char* last_separator = strchr(filepath, '/');
if(!last_separator) last_separator = strchr(filepath, '\\');
char* last_separator = strrchr(filepath, '/');
if(!last_separator) last_separator = strrchr(filepath, '\\');
if(last_separator)
last_separator[0] = '\0';