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:
Jake Turner
2024-08-03 07:45:24 +01:00
parent 9ef756d626
commit 811ec2a5bd
+1 -1
View File
@@ -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();