Lines Matching refs:res

93     SRes res;

110 res = MtProgress_GetError(&mtc->mtProgress);
116 if (res == SZ_OK)
125 res = SZ_ERROR_MEM;
127 if (res == SZ_OK)
129 res = SeqInStream_ReadMax(mtc->inStream, t->inBuf, &size);
133 if (res != SZ_OK)
135 mtc->readRes = res;
137 MtProgress_SetError(&mtc->mtProgress, res);
163 if (res == SZ_OK)
165 res = res2;
166 // MtProgress_SetError(&mtc->mtProgress, res);
177 if (res == SZ_OK)
178 res = MtProgress_GetError(&mtc->mtProgress);
180 if (res != SZ_OK)
188 res = MtCoderThread_CreateAndStart(&mtc->threads[mtc->numStartedThreads]);
189 if (res == SZ_OK)
193 MtProgress_SetError(&mtc->mtProgress, res);
207 if (res == SZ_OK)
214 res = mtc->mtCallback->Code(mtc->mtCallbackObject, t->index, bufIndex,
219 if (res != SZ_OK)
220 MtProgress_SetError(&mtc->mtProgress, res);
225 block->res = res;
247 if (res != SZ_OK || finished)
253 res = mtc->writeRes;
257 if (res == SZ_OK && bufIndex != (unsigned)(int)-1)
259 res = mtc->mtCallback->Write(mtc->mtCallbackObject, bufIndex);
260 if (res != SZ_OK)
262 mtc->writeRes = res;
263 MtProgress_SetError(&mtc->mtProgress, res);
297 if (res == SZ_OK && block->res != SZ_OK)
298 res = block->res;
306 if (finished || res != SZ_OK)
322 SRes res = ThreadFunc2(t);
324 if (res != SZ_OK)
326 MtProgress_SetError(&mtc->mtProgress, res);
430 SRes res = SZ_OK;
519 if (res == SZ_OK && block->res != SZ_OK)
520 res = block->res;
524 if (res == SZ_OK)
526 res = p->mtCallback->Write(p->mtCallbackObject, bufIndex);
527 if (res != SZ_OK)
528 MtProgress_SetError(&p->mtProgress, res);
549 res = MY_SRes_HRESULT_FROM_WRes(wres);
553 if (res == SZ_OK)
554 res = p->readRes;
556 if (res == SZ_OK)
557 res = p->mtProgress.res;
560 if (res == SZ_OK)
561 res = p->writeRes;
564 if (res != SZ_OK)
566 return res;