From f01b1ebb5806accacbbbc4fc548b3bc515c47010 Mon Sep 17 00:00:00 2001 From: janwas Date: Thu, 5 Aug 2004 02:30:27 +0000 Subject: [PATCH] triviality: remove / from module filename in exception report This was SVN commit r901. --- source/lib/sysdep/win/wdbg.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/lib/sysdep/win/wdbg.cpp b/source/lib/sysdep/win/wdbg.cpp index 3f3027f929..281703858a 100755 --- a/source/lib/sysdep/win/wdbg.cpp +++ b/source/lib/sysdep/win/wdbg.cpp @@ -625,7 +625,9 @@ static long CALLBACK except_filter(EXCEPTION_POINTERS* except) { base = (uintptr_t)mbi.AllocationBase; if(GetModuleFileName((HMODULE)base, module_buf, sizeof(module_buf))) - module = strrchr(module_buf, '\\'); + module = strrchr(module_buf, '\\')+1; + // GetModuleFileName returns fully qualified path => + // trailing '\\' exists }