diff options
author | Ladislav Zezula <ladislav.zezula@avg.com> | 2013-12-05 15:59:00 +0100 |
---|---|---|
committer | Ladislav Zezula <ladislav.zezula@avg.com> | 2013-12-05 15:59:00 +0100 |
commit | c34c37b3418f1e5ab3678ce65d46f81803dec91d (patch) | |
tree | 4a9cf4c61634691981f9dc367b53dac4070f8d0d /src/SFilePatchArchives.cpp | |
parent | ff0c25952a28a927c48738ab5207b9bda69e588a (diff) |
+ StormLib 9.0 BETA
Diffstat (limited to 'src/SFilePatchArchives.cpp')
-rw-r--r-- | src/SFilePatchArchives.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/SFilePatchArchives.cpp b/src/SFilePatchArchives.cpp index bfb4100..7f67749 100644 --- a/src/SFilePatchArchives.cpp +++ b/src/SFilePatchArchives.cpp @@ -34,7 +34,7 @@ static bool GetDefaultPatchPrefix( const TCHAR * szDash; // Ensure that both names are plain names - szBaseMpqName = GetPlainFileNameT(szBaseMpqName); + szBaseMpqName = GetPlainFileName(szBaseMpqName); // Patch prefix is for the Cataclysm MPQs, whose names // are like "locale-enGB.MPQ" or "speech-enGB.MPQ" @@ -431,7 +431,7 @@ int PatchFileData(TMPQFile * hf) int nError = ERROR_SUCCESS; // Move to the first patch - hf = hf->hfPatchFile; + hf = hf->hfPatch; // Now go through all patches and patch the original data while(hf != NULL) @@ -450,7 +450,7 @@ int PatchFileData(TMPQFile * hf) break; // Move to the next patch - hf = hf->hfPatchFile; + hf = hf->hfPatch; } return nError; @@ -493,7 +493,7 @@ bool WINAPI SFileOpenPatchArchive( dwFlags = dwFlags; // Verify input parameters - if(!IsValidMpqHandle(ha)) + if(!IsValidMpqHandle(hMpq)) nError = ERROR_INVALID_HANDLE; if(szPatchMpqName == NULL || *szPatchMpqName == 0) nError = ERROR_INVALID_PARAMETER; @@ -580,7 +580,7 @@ bool WINAPI SFileIsPatchedArchive(HANDLE hMpq) TMPQArchive * ha = (TMPQArchive *)hMpq; // Verify input parameters - if(!IsValidMpqHandle(ha)) + if(!IsValidMpqHandle(hMpq)) return false; return (ha->haPatch != NULL); |