From 82523dd29772d9b9a332c04833b94f1cab655307 Mon Sep 17 00:00:00 2001 From: OctaneSnail Date: Sun, 18 Jan 2009 17:40:00 +0100 Subject: Properly load multi volume archives even if the end of archive header is not present. --- RFS.cpp | 3 +++ 1 file changed, 3 insertions(+) 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_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; } -- cgit v1.2.3