HTMLv: fix for previous rev

git-svn-id: svn://kolibrios.org@4647 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2014-03-15 10:34:28 +00:00
parent 99f718a31d
commit 0332630c73

View File

@ -459,14 +459,17 @@ void ProcessLinks(int id)
void StopLoading() void StopLoading()
{ {
EAX = http_transfer; if (http_transfer<>0)
EAX = EAX.http_msg.content_ptr; // get pointer to data {
$push EAX // save it on the stack EAX = http_transfer;
http_free stdcall (http_transfer); // abort connection EAX = EAX.http_msg.content_ptr; // get pointer to data
$pop EAX $push EAX // save it on the stack
mem_Free(EAX); // free data http_free stdcall (http_transfer); // abort connection
http_transfer=0; $pop EAX
bufsize = 0; mem_Free(EAX); // free data
http_transfer=0;
bufsize = 0;
}
PutPaletteImage(#toolbar,200,42,0,0,8,#toolbar_pal); PutPaletteImage(#toolbar,200,42,0,0,8,#toolbar_pal);
} }
@ -499,7 +502,6 @@ void OpenPage()
ShowPage(); ShowPage();
return; return;
} }
IF (http_transfer < 0) notify("Error from HTTP lib");
} }
else else
{ {