diff --git a/programs/network/htmlv/browser/History.txt b/programs/network/htmlv/browser/History.txt index 18055933e..b6e859bc3 100644 --- a/programs/network/htmlv/browser/History.txt +++ b/programs/network/htmlv/browser/History.txt @@ -1,5 +1,6 @@ 13.09.11 -- v0.69 -- 11.2 Кб - нормальная прокрутка изображений; +- работа с файлами любого размера; - оптимизация процедуры парсинга тега с параметрами. 05.09.11 -- v0.68 -- 11.2 Кб diff --git a/programs/network/htmlv/browser/TWB.h-- b/programs/network/htmlv/browser/TWB.h-- index 289085bf1..1aac28707 100644 --- a/programs/network/htmlv/browser/TWB.h-- +++ b/programs/network/htmlv/browser/TWB.h-- @@ -176,9 +176,6 @@ void GetNewUrl(){ void ReadHtml(byte DO_LOAD) { - mem_Free(buf); - - buf = mem_Alloc(1048576); if (!strcmp(get_URL_part(5),"http:"))) { @@ -190,42 +187,15 @@ void ReadHtml(byte DO_LOAD) IF (downloader_id<0) RunProgram("@notify", "Error running Downloader. Internet unavilable."); RETURN; } - ReadFile(0, 1048576, buf, #download_path); + file_size stdcall (#download_path); } - ELSE ReadFile(0, 1048576, buf, #URL); - + ELSE file_size stdcall (#URL); + filesize = EBX; -} - -/*void ReadHtml(byte DO_LOAD) -{ - char FileAdress[4096]; - - IF (!strcmp(get_URL_part(5),"http:")) - { - IF (DO_LOAD) //&& (!WindowRePaint) - { - DeleteFile(#download_path); - IF (URL[strlen(#URL)-1]=='/') URL[strlen(#URL)-1]=''; - RunProgram("/sys/network/downloader", #URL); - RETURN; - } - copystr(#download_path, #FileAdress); - //ReadFile(0, 1048576, buf, #download_path); - } - ELSE copystr(#URL, #FileAdress);//ReadFile(0, 1048576, buf, #URL); - mem_Free(buf); - file_size stdcall (#FileAdress); - $mov filesize, ebx - buf = mem_Alloc(filesize); - WriteDebug(IntToStr(filesize)); - //$mov buf, eax - //buf = malloc(1048576); - - //filesize = EBX; -}*/ - + buf = mem_Alloc(filesize); + ReadFile(0, filesize, buf, #URL); +}