diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2008-12-27 17:16:35 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2008-12-27 17:16:35 +0000 |
commit | 04d7ddde4f3ec998b5a0384fd0afef45baf230f9 (patch) | |
tree | 5284e7de01c9c8a8568f981b76cc176fd4543f7d /amiga/fetch_file.c | |
parent | 5a3b0768692ca1fd264abd418ca2df9cfd12c130 (diff) | |
download | netsurf-04d7ddde4f3ec998b5a0384fd0afef45baf230f9.tar.gz netsurf-04d7ddde4f3ec998b5a0384fd0afef45baf230f9.tar.bz2 |
Update to new API
svn path=/trunk/netsurf/; revision=5933
Diffstat (limited to 'amiga/fetch_file.c')
-rwxr-xr-x | amiga/fetch_file.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/amiga/fetch_file.c b/amiga/fetch_file.c index 905b19ba1..f8d3e777e 100755 --- a/amiga/fetch_file.c +++ b/amiga/fetch_file.c @@ -47,7 +47,7 @@ struct ami_file_fetch_info { bool locked; struct nsObject *obj; int httpcode; - ULONG len; + int64 len; char *mimetype; struct cache_data cachedata; }; @@ -281,16 +281,19 @@ void ami_fetch_file_poll(const char *scheme_ignored) if(fetch->fh) { - struct FileInfoBlock fib; - if(ExamineFH(fetch->fh,&fib)) - fetch->len = fib.fib_Size; + struct ExamineData *fib; + if(fib = ExamineObjectTags(EX_FileHandleInput,fetch->fh,TAG_DONE)) + { + fetch->len = fib->FileSize; + FreeDosObject(DOS_EXAMINEDATA,fib); + } fetch_set_http_code(fetch->fetch_handle,200); fetch->mimetype = fetch_mimetype(fetch->path); LOG(("mimetype %s len %ld",fetch->mimetype,fetch->len)); ami_fetch_file_send_callback(FETCH_TYPE, - fetch, fetch->mimetype, fetch->len); + fetch, fetch->mimetype, (ULONG)fetch->len); } else { |