mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Handle case where file is empty (don't index invalidly).
This commit is contained in:
@@ -580,6 +580,10 @@ void DXBCFile::MakeDisassembly()
|
||||
{
|
||||
line = "Unknown file";
|
||||
}
|
||||
else if(fileLines[fileID].empty())
|
||||
{
|
||||
line = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
int32_t lineIdx = RDCMIN(lineNum, (int32_t)fileLines[fileID].size()-1);
|
||||
|
||||
Reference in New Issue
Block a user