blob: c4680eb6f6e9be59fa27f22868cc9caf71ee4e3c [file] [log] [blame]
diff --git a/third_party/unrar/src/extract.cpp b/third_party/unrar/src/extract.cpp
index d33306d82dc8..209047e130aa 100644
--- a/third_party/unrar/src/extract.cpp
+++ b/third_party/unrar/src/extract.cpp
@@ -270,15 +270,17 @@ bool CmdExtract::ExtractCurrentFile(Archive &Arc,size_t HeaderSize,bool &Repeat)
{
if (Arc.EndArcHead.NextVolume)
{
-#ifndef NOVOLUME
+#ifdef NOVOLUME
+ return false;
+#else
if (!MergeArchive(Arc,&DataIO,false,Command))
{
ErrHandler.SetErrorCode(RARX_WARNING);
return false;
}
-#endif
Arc.Seek(Arc.CurBlockPos,SEEK_SET);
return true;
+#endif
}
else
return false;