Jacek Caban : mshtml: Fixed dispid lookup in_cp_event.
Alexandre Julliard
julliard at winehq.org
Thu Dec 3 10:29:52 CST 2009
Module: wine
Branch: master
Commit: bfec9c619b31de8aff3f385a6fc9a03a9d331be5
URL: http://source.winehq.org/git/wine.git/?a=commit;h=bfec9c619b31de8aff3f385a6fc9a03a9d331be5
Author: Jacek Caban <jacek at codeweavers.com>
Date: Thu Dec 3 01:12:30 2009 +0100
mshtml: Fixed dispid lookup in_cp_event.
---
dlls/mshtml/htmlevent.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/mshtml/htmlevent.c b/dlls/mshtml/htmlevent.c
index af1327c..c09db52 100644
--- a/dlls/mshtml/htmlevent.c
+++ b/dlls/mshtml/htmlevent.c
@@ -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)
More information about the wine-cvs
mailing list