the return value should correspond to the actual size of the data.
however the result is always '6'.
this is caused by writing the filesize in the end (at pos 2)
pos2 + 4 byte = 6 (the returned size)
the return value is determined by itellw = iTellLumpW = Lumppos (which is 6 after writing the filesize at pos2)
@@ -1012,6 +1012,8 @@
if (TempImage != iCurImage)
+ iseekw(FileSize, IL_SEEK_SET);
have a nice day
Log in to post a comment.