Commit 3c03fb56 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #12258 from savuor:fix/trace_fname_slash

parents c6f5b013 378cf2ab
......@@ -801,10 +801,12 @@ TraceStorage* TraceManagerThreadLocal::getStorage() const
const char* pos = strrchr(filepath.c_str(), '/'); // extract filename
#ifdef _WIN32
if (!pos)
strrchr(filepath.c_str(), '\\');
pos = strrchr(filepath.c_str(), '\\');
#endif
if (!pos)
pos = filepath.c_str();
else
pos += 1; // fix to skip extra slash in filename beginning
msg.printf("#thread file: %s\n", pos);
global->put(msg);
storage.reset(new AsyncTraceStorage(filepath));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment