diff options
author | OctaneSnail <os@v12pwr.com> | 2009-01-18 19:40:00 +0300 |
---|---|---|
committer | OctaneSnail <os@v12pwr.com> | 2009-01-18 19:40:00 +0300 |
commit | 82523dd29772d9b9a332c04833b94f1cab655307 (patch) | |
tree | 986641796162988b9a658d1775c0dfbb5557c75a | |
parent | 3af7c57491ab8082a71a9ffe17d453f83ee3fb08 (diff) |
Properly load multi volume archives even if the end of archive header is not present.
-rw-r--r-- | RFS.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; } |