Age | Commit message (Collapse) | Author |
|
This addresses a bug introduced in:
- fe652fe4a6e02041194a0f1b29a0086bd99fb14d
Brackets were not properly included, causing `SFILE_INVALID_POS` to be
returned whenever `DeltaPos` was less than zero, instead of only when
the resulting position was negative.
|
|
This addresses an apparent oversight in the following commit:
- 951f416398b3aa0b32969b4a391a3103443ad99e
An error is not actually set, even though the return value now correctly
indicates failure. Per the documentation for [`SetFilerPointer ()`][1],
this should be set to `ERROR_NEGATIVE_SEEK` on Windows. On Mac/Linux,
this would be `EINVAL` as per the documentation for [`fseek ()`][2].
[1]: https://msdn.microsoft.com/en-us/library/windows/desktop/aa365541(v=vs.85).aspx
[2]: http://pubs.opengroup.org/onlinepubs/9699919799/functions/fseek.html
|
|
The standard behaviour for fseek / SetFilePointer when the new pointed value would be negative is to not move the pointer and return an error.
See : https://msdn.microsoft.com/en-us/library/windows/desktop/aa365541(v=vs.85).aspx `If a new file pointer is a negative value, the function fails, the file pointer is not moved, and the code returned by GetLastError is ERROR_NEGATIVE_SEEK.`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ StormLib now creates a listfile even for empty archives to make sure it will be maintained at later point when files are added to it
+ Bug fixes in listfile loading
|
|
+ Optimized patching process so it consimes less memory
+ Added hash table and block table defragmenting for malformed War3 maps
|
|
|
|
+ Compacting optimized
|
|
|
|
+ Fixed few memory leaks
|
|
|
|
|
|
|
|
+ Added SBaseDumpData to the makefiles
|
|
|
|
+ Replaced MPQ_FILE_COMPRESSED with more descriptive MPQ_FILE_COMPRESS_MASK
|
|
+ Makefiles fixed
|
|
|