Austin English : mshtml: Avoid shadowing a parameter.

Alexandre Julliard julliard at winehq.org
Wed Mar 9 11:12:50 CST 2011


Module: wine
Branch: master
Commit: a71f3683afe719895dcf71b73d81ef5c5c36e037
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a71f3683afe719895dcf71b73d81ef5c5c36e037

Author: Austin English <austinenglish at gmail.com>
Date:   Wed Mar  9 01:07:39 2011 -0800

mshtml: Avoid shadowing a parameter.

---

 dlls/mshtml/dispex.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

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-cvs mailing list