mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-08 21:31:36 +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:
1 parent
9ef756d626
commit
811ec2a5bd
1 file changed
+1
-1
@@ -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