Commit 4ace7b21 authored by Austin English's avatar Austin English Committed by Alexandre Julliard

msxml3: Avoid shadowing a parameter.

parent a71f3683
...@@ -134,16 +134,16 @@ HRESULT get_typeinfo(enum tid_t tid, ITypeInfo **typeinfo) ...@@ -134,16 +134,16 @@ HRESULT get_typeinfo(enum tid_t tid, ITypeInfo **typeinfo)
} }
if(!typeinfos[tid]) { if(!typeinfos[tid]) {
ITypeInfo *typeinfo; ITypeInfo *ti;
hres = ITypeLib_GetTypeInfoOfGuid(typelib, tid_ids[tid], &typeinfo); hres = ITypeLib_GetTypeInfoOfGuid(typelib, tid_ids[tid], &ti);
if(FAILED(hres)) { if(FAILED(hres)) {
ERR("GetTypeInfoOfGuid failed: %08x\n", hres); ERR("GetTypeInfoOfGuid failed: %08x\n", hres);
return hres; return hres;
} }
if(InterlockedCompareExchangePointer((void**)(typeinfos+tid), typeinfo, NULL)) if(InterlockedCompareExchangePointer((void**)(typeinfos+tid), ti, NULL))
ITypeInfo_Release(typeinfo); ITypeInfo_Release(ti);
} }
*typeinfo = typeinfos[tid]; *typeinfo = typeinfos[tid];
......
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