mshtml: avoid shadowing a parameter (1/2)

Austin English austinenglish at gmail.com
Wed Mar 9 03:07:39 CST 2011


-- 
-Austin
-------------- next part --------------
diff --git a/dlls/mshtml/dispex.c b/dlls/mshtml/dispex.c
index 4706309..327b5db 100644
--- a/dlls/mshtml/dispex.c
+++ b/dlls/mshtml/dispex.c
@@ -106,16 +106,16 @@ static HRESULT get_typeinfo(tid_t tid, ITypeInfo **typeinfo)
     }
 
     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)) {
             ERR("GetTypeInfoOfGuid(%s) failed: %08x\n", debugstr_guid(tid_ids[tid]), hres);
             return hres;
         }
 
-        if(InterlockedCompareExchangePointer((void**)(typeinfos+tid), typeinfo, NULL))
-            ITypeInfo_Release(typeinfo);
+        if(InterlockedCompareExchangePointer((void**)(typeinfos+tid), ti, NULL))
+            ITypeInfo_Release(ti);
     }
 
     *typeinfo = typeinfos[tid];


More information about the wine-patches mailing list