mshtml: Fixed dispid lookup in_cp_event.

This commit is contained in:
Jacek Caban 2009-12-03 01:12:30 +01:00 committed by Alexandre Julliard
parent 451f5b4ad6
commit bfec9c619b
1 changed files with 3 additions and 3 deletions

View File

@ -780,7 +780,7 @@ static HRESULT call_cp_func(IDispatch *disp, DISPID dispid)
static BOOL is_cp_event(ConnectionPoint *cp, DISPID dispid)
{
cp_static_data_t *data;
unsigned min, max, i;
int min, max, i;
HRESULT hres;
data = cp->data;
@ -790,11 +790,11 @@ static BOOL is_cp_event(ConnectionPoint *cp, DISPID dispid)
if(!data->ids) {
hres = get_dispids(data->tid, &data->id_cnt, &data->ids);
if(FAILED(hres))
return hres;
return FALSE;
}
min = 0;
max = data->id_cnt;
max = data->id_cnt-1;
while(min <= max) {
i = (min+max)/2;
if(data->ids[i] == dispid)