aboutsummaryrefslogtreecommitdiff
path: root/src/SFileAttributes.cpp
diff options
context:
space:
mode:
authorLadislav Zezula <zezula@volny.cz>2020-11-23 12:56:00 +0100
committerLadislav Zezula <zezula@volny.cz>2020-11-23 12:56:00 +0100
commitb6102b2600f792f159320439686a872a72d20c70 (patch)
treea9cfacadc0c28b3cfde908d2a4511b6605a648a0 /src/SFileAttributes.cpp
parent809005c7f025bcc55bfa4ede78cb4cc45d3c0e6c (diff)
Removed trailing whitespace
Diffstat (limited to 'src/SFileAttributes.cpp')
-rw-r--r--src/SFileAttributes.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/SFileAttributes.cpp b/src/SFileAttributes.cpp
index f57f62c..77464f0 100644
--- a/src/SFileAttributes.cpp
+++ b/src/SFileAttributes.cpp
@@ -151,7 +151,7 @@ static int LoadAttributesFile(TMPQArchive * ha, LPBYTE pbAttrFile, DWORD cbAttrF
if((pbAttrPtr + sizeof(MPQ_ATTRIBUTES_HEADER)) <= pbAttrFileEnd)
{
PMPQ_ATTRIBUTES_HEADER pAttrHeader = (PMPQ_ATTRIBUTES_HEADER)pbAttrPtr;
-
+
// Verify the header version
BSWAP_ARRAY32_UNSIGNED(pAttrHeader, sizeof(MPQ_ATTRIBUTES_HEADER));
if(pAttrHeader->dwVersion != MPQ_ATTRIBUTES_V1)
@@ -378,7 +378,7 @@ int SAttrLoadAttributes(TMPQArchive * ha)
{
// Retrieve and check size of the (attributes) file
cbAttrFile = SFileGetFileSize(hFile, NULL);
-
+
// Integer overflow check
if((cbAttrFile + 1) > cbAttrFile)
{
@@ -461,7 +461,7 @@ int SAttrFileSaveToMpq(TMPQArchive * ha)
nError = (cbAttrFile == 0) ? ERROR_SUCCESS : ERROR_NOT_ENOUGH_MEMORY;
}
}
-
+
return nError;
}