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

Function RARCloseArchive

Libraries/unrar/dll.cpp:168–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166
167
168int PASCAL RARCloseArchive(HANDLE hArcData)
169{
170 DataSet *Data=(DataSet *)hArcData;
171 try
172 {
173 bool Success=Data==NULL ? false:Data->Arc.Close();
174 delete Data;
175 return Success ? ERAR_SUCCESS : ERAR_ECLOSE;
176 }
177 catch (RAR_EXIT ErrCode)
178 {
179 return Data->Cmd.DllError!=0 ? Data->Cmd.DllError : RarErrorToDll(ErrCode);
180 }
181}
182
183
184int PASCAL RARReadHeader(HANDLE hArcData,struct RARHeaderData *D)

Callers

nothing calls this directly

Calls 2

RarErrorToDllFunction · 0.85
CloseMethod · 0.45

Tested by

no test coverage detected