mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-10 22:31:32 +00:00
Handle case where file is empty (don't index invalidly).
This commit is contained in:
1 parent
035570d054
commit
fd7c18ffde
1 file changed
+4
@@ -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