mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-07 14:35:48 +00:00
Get the proper filename for windows callstacks (currently unused)
This commit is contained in:
1 parent
188779e298
commit
396e31850a
1 file changed
+3
-1
@@ -733,7 +733,9 @@ Callstack::AddressDetails Win32CallstackResolver::GetAddr(DWORD64 addr)
|
||||
if(modules[i].moduleId != 0)
|
||||
info = GetAddrInfoForModule(modules[i].moduleId, addr);
|
||||
|
||||
wcsncpy_s(info.fileName, modules[i].name.c_str(), 126);
|
||||
// if we didn't get a filename, default to the module name
|
||||
if(info.fileName[0] == 0)
|
||||
wcsncpy_s(info.fileName, modules[i].name.c_str(), 126);
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user