summaryrefslogtreecommitdiffstats
path: root/app-arch/unrar/files/ftello_unrar_fix.patch
blob: a5f0d62d24101d9e595727584b6fe329d2f4c749 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff -ruN unrar.orig/dll.cpp unrar/dll.cpp
--- unrar.orig/dll.cpp	2005-08-03 20:34:30.000000000 +0400
+++ unrar/dll.cpp	2006-01-11 12:13:33.000000000 +0300
@@ -271,8 +271,10 @@
       strcpy(Data->Cmd.Command,Operation==RAR_EXTRACT ? "X":"T");
       Data->Cmd.Test=Operation!=RAR_EXTRACT;
       bool Repeat=false;
-      Data->Extract.ExtractCurrentFile(&Data->Cmd,Data->Arc,Data->HeaderSize,Repeat);
-
+      
+      if(Data->Extract.ExtractCurrentFile(&Data->Cmd,Data->Arc,Data->HeaderSize,Repeat) == false)
+        return (ERAR_UNKNOWN);
+	
       while (Data->Arc.ReadHeader()!=0 && Data->Arc.GetHeaderType()==NEWSUB_HEAD)
       {
         Data->Extract.ExtractCurrentFile(&Data->Cmd,Data->Arc,Data->HeaderSize,Repeat);