mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-02-05 09:29:08 +00:00
chore(build): update StormLib
This commit is contained in:
parent
1e5f4fb542
commit
6c4f278065
23 changed files with 753 additions and 287 deletions
5
vendor/stormlib-9/src/SFileAttributes.cpp
vendored
5
vendor/stormlib-9/src/SFileAttributes.cpp
vendored
|
|
@ -391,7 +391,10 @@ DWORD SAttrLoadAttributes(TMPQArchive * ha)
|
|||
pbAttrFile[cbAttrFile] = 0;
|
||||
|
||||
// Load the entire file to memory
|
||||
SFileReadFile(hFile, pbAttrFile, cbAttrFile, &dwBytesRead, NULL);
|
||||
if(!SFileReadFile(hFile, pbAttrFile, cbAttrFile, &dwBytesRead, NULL))
|
||||
ha->dwFlags |= (GetLastError() == ERROR_FILE_CORRUPT) ? MPQ_FLAG_MALFORMED : 0;
|
||||
|
||||
// Parse the (attributes)
|
||||
if(dwBytesRead == cbAttrFile)
|
||||
dwErrCode = LoadAttributesFile(ha, pbAttrFile, cbAttrFile);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue