Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/rarfilesource.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOctaneSnail <os@v12pwr.com>2009-01-18 19:40:00 +0300
committerOctaneSnail <os@v12pwr.com>2009-01-18 19:40:00 +0300
commit82523dd29772d9b9a332c04833b94f1cab655307 (patch)
tree986641796162988b9a658d1775c0dfbb5557c75a
parent3af7c57491ab8082a71a9ffe17d453f83ee3fb08 (diff)
Properly load multi volume archives even if the end of archive header is not present.
-rw-r--r--RFS.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/RFS.cpp b/RFS.cpp
index 97488fb..5dd9257 100644
--- a/RFS.cpp
+++ b/RFS.cpp
@@ -628,6 +628,9 @@ int CRARFileSource::ScanArchive (wchar_t *archive_name, List<File> *file_list, i
hFile = CreateFile (current_rar_filename, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, NULL);
if (hFile == INVALID_HANDLE_VALUE)
{
+ if (!file)
+ break;
+
ErrorMsg (GetLastError (), L"Could not open file \"%s\".", current_rar_filename);
return FALSE;
}