This commit is contained in:
Kovid Goyal 2012-11-26 15:26:57 +05:30
parent 78d4515e63
commit 3e5028e275

View File

@ -377,6 +377,10 @@ RAR_process_item(RARArchive *self, PyObject *args) {
PyErr_SetString(UNRARError, "This file is locked with a password."); PyErr_SetString(UNRARError, "This file is locked with a password.");
return NULL; return NULL;
} }
if (self->archive->NewLhd.Flags & LHD_SPLIT_AFTER) {
PyErr_SetString(UNRARError, "This file is part of a multivolume RAR archive.");
return NULL;
}
self->DataIO.UnpVolume = false; self->DataIO.UnpVolume = false;
self->DataIO.NextVolumeMissing=false; self->DataIO.NextVolumeMissing=false;
self->DataIO.CurUnpRead=0; self->DataIO.CurUnpRead=0;