From ed15d78e2b18e3aad8cb37acf6f5330e29f3a7f3 Mon Sep 17 00:00:00 2001 From: Timothee Besset Date: Sat, 25 Feb 2017 15:26:17 -0600 Subject: [PATCH] tweak previous --- plugins/vfswad/vfs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/vfswad/vfs.cpp b/plugins/vfswad/vfs.cpp index e469317b..70ff2888 100644 --- a/plugins/vfswad/vfs.cpp +++ b/plugins/vfswad/vfs.cpp @@ -153,7 +153,7 @@ void ExtractFileName( const char *path, char *dest ){ // // back up until a \ or the start // - while ( src != path && *( src - 1 ) != '/' + while ( src > path && *( src - 1 ) != '/' && *( src - 1 ) != '\\' ) src--;