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:
authorJohn Peterson <john.peterson3@hotmail.com>2012-03-01 03:04:51 +0400
committerOctaneSnail <os@v12pwr.com>2012-03-04 14:42:36 +0400
commit400041a53fabb2f55eaa72f2e84e15f5ad1d2b04 (patch)
tree2f2f7351fb52aa91f7c41f81c8028b8fb4354304 /RFS.cpp
parentc57d1f75af8325137a66468592f1d3d827a22231 (diff)
Fix for 100+ part volumes with old numbering.
Diffstat (limited to 'RFS.cpp')
-rw-r--r--RFS.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/RFS.cpp b/RFS.cpp
index e889f1a..62ef357 100644
--- a/RFS.cpp
+++ b/RFS.cpp
@@ -245,7 +245,7 @@ void CRARFileSource::UpdateArchiveName (wchar_t *ext, size_t len, int volume, bo
ext [1] = L'r';
}
else
- StringCchPrintf (ext, len + 1, L"%02d", volume - 1);
+ StringCchPrintf (ext - 1, len + 2, L"%c%02d", 114 + (volume - 1) / 100, (volume - 1) % 100);
}
}