From 0332630c7308b4cff2fe65fa97166a4ac22ed994 Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Sat, 15 Mar 2014 10:34:28 +0000 Subject: [PATCH] HTMLv: fix for previous rev git-svn-id: svn://kolibrios.org@4647 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/browser/HTMLv.c | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/programs/cmm/browser/HTMLv.c b/programs/cmm/browser/HTMLv.c index bd00e82849..a011276f42 100644 --- a/programs/cmm/browser/HTMLv.c +++ b/programs/cmm/browser/HTMLv.c @@ -459,14 +459,17 @@ void ProcessLinks(int id) void StopLoading() { - EAX = http_transfer; - EAX = EAX.http_msg.content_ptr; // get pointer to data - $push EAX // save it on the stack - http_free stdcall (http_transfer); // abort connection - $pop EAX - mem_Free(EAX); // free data - http_transfer=0; - bufsize = 0; + if (http_transfer<>0) + { + EAX = http_transfer; + EAX = EAX.http_msg.content_ptr; // get pointer to data + $push EAX // save it on the stack + http_free stdcall (http_transfer); // abort connection + $pop EAX + mem_Free(EAX); // free data + http_transfer=0; + bufsize = 0; + } PutPaletteImage(#toolbar,200,42,0,0,8,#toolbar_pal); } @@ -499,7 +502,6 @@ void OpenPage() ShowPage(); return; } - IF (http_transfer < 0) notify("Error from HTTP lib"); } else {