diff --git a/renderdoc/os/win32/win32_callstack.cpp b/renderdoc/os/win32/win32_callstack.cpp index 7fbf6d11e..d5ff8fcea 100644 --- a/renderdoc/os/win32/win32_callstack.cpp +++ b/renderdoc/os/win32/win32_callstack.cpp @@ -158,7 +158,7 @@ static bool InitDbgHelp() } else { - slash = wcsrchr(slash, '/'); + slash = wcsrchr(path, '/'); if(slash == 0) {