Commit 9ead8c29 authored by Johan Mattsson's avatar Johan Mattsson Committed by David Reid

Fix potential index out of bounds

parent 750e83fb
...@@ -17295,7 +17295,7 @@ MA_API ma_result ma_job_process(ma_job* pJob) ...@@ -17295,7 +17295,7 @@ MA_API ma_result ma_job_process(ma_job* pJob)
return MA_INVALID_ARGS; return MA_INVALID_ARGS;
} }
if (pJob->toc.breakup.code > MA_JOB_TYPE_COUNT) { if (pJob->toc.breakup.code >= MA_JOB_TYPE_COUNT) {
return MA_INVALID_OPERATION; return MA_INVALID_OPERATION;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment