mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Do not crash in OpenCapture if m_RDC is NULL
The NULL case was being handled for setting the return code and then Error() was being called on a NULL m_RDC
This commit is contained in:
@@ -355,7 +355,7 @@ rdcpair<ResultDetails, IReplayController *> CaptureFile::OpenCapture(const Repla
|
||||
ReplayController *render = NULL;
|
||||
|
||||
if(!m_RDC)
|
||||
ret = RDResult(ResultCode::InternalError, "RDC file unexpectedly NULL");
|
||||
return {RDResult(ResultCode::InternalError, "RDC file unexpectedly NULL"), render};
|
||||
|
||||
ret = m_RDC->Error();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user