Commit 2348215b authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

mshtml: Replace a useless trace with a slightly better one.

parent 63946a29
......@@ -256,8 +256,10 @@ static void add_func_info(dispex_data_t *data, tid_t tid, const FUNCDESC *desc,
HRESULT hres;
hres = ITypeInfo_GetDocumentation(dti, desc->memid, &name, NULL, NULL, NULL);
if(FAILED(hres))
if(FAILED(hres)) {
WARN("GetDocumentation failed: %08x\n", hres);
return;
}
for(info = data->funcs; info < data->funcs+data->func_cnt; info++) {
if(info->id == desc->memid || !wcscmp(info->name, name)) {
......@@ -269,6 +271,8 @@ static void add_func_info(dispex_data_t *data, tid_t tid, const FUNCDESC *desc,
}
}
TRACE("adding %s...\n", debugstr_w(name));
if(info == data->funcs+data->func_cnt) {
if(data->func_cnt == data->func_size)
data->funcs = heap_realloc_zero(data->funcs, (data->func_size <<= 1)*sizeof(func_info_t));
......@@ -414,7 +418,6 @@ static HRESULT process_interface(dispex_data_t *data, tid_t tid, ITypeInfo *disp
}
if(!hook || hook->invoke) {
TRACE("adding...\n");
add_func_info(data, tid, funcdesc, disp_typeinfo ? disp_typeinfo : typeinfo,
hook ? hook->invoke : NULL);
}
......
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