Commit c8bb048b authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Abstract BSCallback implementation.

parent 6738db5a
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
typedef struct HTMLDOMNode HTMLDOMNode; typedef struct HTMLDOMNode HTMLDOMNode;
typedef struct ConnectionPoint ConnectionPoint; typedef struct ConnectionPoint ConnectionPoint;
typedef struct BSCallback BSCallback; typedef struct BSCallback BSCallback;
typedef struct BSCallback nsChannelBSC; typedef struct nsChannelBSC nsChannelBSC;
typedef struct { typedef struct {
const IHTMLWindow2Vtbl *lpHTMLWindow2Vtbl; const IHTMLWindow2Vtbl *lpHTMLWindow2Vtbl;
...@@ -479,7 +479,7 @@ typedef struct task_t { ...@@ -479,7 +479,7 @@ typedef struct task_t {
TASK_START_BINDING TASK_START_BINDING
} task_id; } task_id;
BSCallback *bscallback; nsChannelBSC *bscallback;
struct task_t *next; struct task_t *next;
} task_t; } task_t;
......
...@@ -215,7 +215,7 @@ static void task_start_binding(HTMLDocument *doc, BSCallback *bscallback) ...@@ -215,7 +215,7 @@ static void task_start_binding(HTMLDocument *doc, BSCallback *bscallback)
{ {
if(doc) if(doc)
start_binding(doc, bscallback, NULL); start_binding(doc, bscallback, NULL);
IBindStatusCallback_Release(STATUSCLB(bscallback)); IUnknown_Release((IUnknown*)bscallback);
} }
static void process_task(task_t *task) static void process_task(task_t *task)
...@@ -231,7 +231,7 @@ static void process_task(task_t *task) ...@@ -231,7 +231,7 @@ static void process_task(task_t *task)
set_progress(task->doc); set_progress(task->doc);
break; break;
case TASK_START_BINDING: case TASK_START_BINDING:
task_start_binding(task->doc, task->bscallback); task_start_binding(task->doc, (BSCallback*)task->bscallback);
break; break;
default: default:
ERR("Wrong task_id %d\n", task->task_id); ERR("Wrong task_id %d\n", task->task_id);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment