From 4e8e88052775f4781f8a96e7688b7602db5d4e61 Mon Sep 17 00:00:00 2001 From: vng Date: Sun, 14 Aug 2011 18:08:38 +0300 Subject: [PATCH] [by familom]: Temporary fix of desktop version downloader (support backslashes in filepath). --- storage/storage.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/storage/storage.cpp b/storage/storage.cpp index 9ecbfd0dcd..320c02b27e 100644 --- a/storage/storage.cpp +++ b/storage/storage.cpp @@ -353,7 +353,9 @@ namespace storage // get file descriptor string file = result.m_file; - string::size_type const i = file.find_last_of('/'); + + // FIXME + string::size_type const i = file.find_last_of("/\\"); if (i != string::npos) file = file.substr(i+1);