MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / SetErrorCode

Method SetErrorCode

Libraries/unrar/errhnd.cpp:232–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230
231
232void ErrorHandler::SetErrorCode(RAR_EXIT Code)
233{
234 switch(Code)
235 {
236 case RARX_WARNING:
237 case RARX_USERBREAK:
238 if (ExitCode==RARX_SUCCESS)
239 ExitCode=Code;
240 break;
241 case RARX_CRC:
242 if (ExitCode!=RARX_BADPWD)
243 ExitCode=Code;
244 break;
245 case RARX_FATAL:
246 if (ExitCode==RARX_SUCCESS || ExitCode==RARX_WARNING)
247 ExitCode=RARX_FATAL;
248 break;
249 default:
250 ExitCode=Code;
251 break;
252 }
253 ErrCount++;
254}
255
256
257#ifdef _WIN_ALL

Callers 15

TestMethod · 0.80
TestMethod · 0.80
ExtractHardlinkFunction · 0.80
mainFunction · 0.80
ExtractACL20Function · 0.80
ExtractACLFunction · 0.80
ExtractUnixOwner20Function · 0.80
ExtractUnixOwner30Function · 0.80
SetUnixOwnerFunction · 0.80
UnknownMethodMsgMethod · 0.80
UnexpEndArcMsgMethod · 0.80
BrokenHeaderMsgMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestMethod · 0.64
TestMethod · 0.64