diff options
author | Ladislav Zezula <zezula@volny.cz> | 2023-06-02 07:33:53 +0200 |
---|---|---|
committer | Ladislav Zezula <zezula@volny.cz> | 2023-06-02 07:33:53 +0200 |
commit | 1e436d61fe963d58235af5b898f0e70a18bbb550 (patch) | |
tree | c2f83e24f0594fcd3ff51171ca5fafe859bfec45 | |
parent | e0dc612ec8deeb12773009f6bb3d9df7a95b1051 (diff) |
Beautifying
-rw-r--r-- | src/SFileListFile.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/SFileListFile.cpp b/src/SFileListFile.cpp index efad14e..b2a3a3c 100644 --- a/src/SFileListFile.cpp +++ b/src/SFileListFile.cpp @@ -558,7 +558,7 @@ static DWORD SFileAddArbitraryListFile( return (pCache != NULL) ? ERROR_SUCCESS : ERROR_FILE_CORRUPT;
}
-static int SFileAddArbitraryListFile(
+static DWORD SFileAddArbitraryListFile(
TMPQArchive * ha,
const char ** listFileEntries,
DWORD dwEntryCount)
@@ -566,11 +566,13 @@ static int SFileAddArbitraryListFile( if(listFileEntries != NULL && dwEntryCount > 0)
{
// Get the next line
- for (DWORD dwListFileNum=0; dwListFileNum<dwEntryCount; dwListFileNum++)
+ for(DWORD dwListFileNum = 0; dwListFileNum < dwEntryCount; dwListFileNum++)
{
- const char* listFileEntry = listFileEntries[dwListFileNum];
- if ( listFileEntry != NULL )
+ const char * listFileEntry = listFileEntries[dwListFileNum];
+ if(listFileEntry != NULL)
+ {
SListFileCreateNodeForAllLocales(ha, listFileEntry);
+ }
}
}
|