mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 01:20:42 +00:00
Add extra error in case of failed file I/O
This commit is contained in:
@@ -782,6 +782,12 @@ void RDCFile::Create(const char *filename)
|
||||
FileIO::fclose(m_File);
|
||||
m_File = FileIO::fopen(filename, "rb");
|
||||
FileIO::fseek64(m_File, 0, SEEK_END);
|
||||
|
||||
if(!m_File)
|
||||
{
|
||||
RETURNERROR(ContainerError::FileIO, "Can't open capture file '%s' as read-only, errno %d",
|
||||
filename, errno);
|
||||
}
|
||||
}
|
||||
|
||||
int RDCFile::SectionIndex(SectionType type) const
|
||||
|
||||
Reference in New Issue
Block a user