Mercurial > audlegacy-plugins
changeset 236:c9d1426fc948 trunk
[svn] - detect filesize properly
author | nenolod |
---|---|
date | Tue, 07 Nov 2006 02:01:22 -0800 |
parents | 964ad0acc33f |
children | f0117679cd26 |
files | ChangeLog src/modplug/archive/arch_raw.cxx |
diffstat | 2 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Tue Nov 07 01:56:59 2006 -0800 +++ b/ChangeLog Tue Nov 07 02:01:22 2006 -0800 @@ -1,3 +1,11 @@ +2006-11-07 09:56:59 +0000 William Pitcock <nenolod@nenolod.net> + revision [484] + - that should have been a 1 + + trunk/src/modplug/archive/arch_raw.cxx | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + + 2006-11-07 09:55:13 +0000 William Pitcock <nenolod@nenolod.net> revision [482] - VFS support
--- a/src/modplug/archive/arch_raw.cxx Tue Nov 07 01:56:59 2006 -0800 +++ b/src/modplug/archive/arch_raw.cxx Tue Nov 07 02:01:22 2006 -0800 @@ -24,7 +24,9 @@ mSize = 0; return; } + vfs_fseek(mFileDesc, 0, SEEK_END); mSize = vfs_ftell(mFileDesc); + vfs_fseek(mFileDesc, 0, SEEK_SET); mMap = malloc(mSize); vfs_fread(mMap, 1, mSize, mFileDesc);