aboutsummaryrefslogtreecommitdiff
path: root/src/SFileCompactArchive.cpp
diff options
context:
space:
mode:
authorLadislav Zezula <ladislav.zezula@avg.com>2016-07-14 14:15:29 +0200
committerLadislav Zezula <ladislav.zezula@avg.com>2016-07-14 14:15:29 +0200
commitf3112547853a361f9c5419cfb6810b2a54c643e6 (patch)
treeef7998fbd7f3d47e564005dd0b173151275329f3 /src/SFileCompactArchive.cpp
parent7597fe1702e4f27faf51d201b566139e17ad4342 (diff)
+ Fixed bug in opening SQP archives
+ More efficient version of GetNearestPowerOfTwo
Diffstat (limited to 'src/SFileCompactArchive.cpp')
-rw-r--r--src/SFileCompactArchive.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SFileCompactArchive.cpp b/src/SFileCompactArchive.cpp
index 57c8839..2895baa 100644
--- a/src/SFileCompactArchive.cpp
+++ b/src/SFileCompactArchive.cpp
@@ -481,7 +481,7 @@ bool WINAPI SFileSetMaxFileCount(HANDLE hMpq, DWORD dwMaxFileCount)
if(nError == ERROR_SUCCESS)
{
// Calculate the hash table size for the new file limit
- dwNewHashTableSize = GetHashTableSizeForFileCount(dwMaxFileCount);
+ dwNewHashTableSize = GetNearestPowerOfTwo(dwMaxFileCount);
// Rebuild both file tables
nError = RebuildFileTable(ha, dwNewHashTableSize);