Module: wine Branch: master Commit: 1ba20d3b8b030e00d476cd2fe2050eda486b1797 URL: http://source.winehq.org/git/wine.git/?a=commit;h=1ba20d3b8b030e00d476cd2fe2...
Author: Jacek Caban jacek@codeweavers.com Date: Fri Jan 26 18:50:43 2007 +0100
urlmon: Code clean up.
---
dlls/urlmon/umon.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/dlls/urlmon/umon.c b/dlls/urlmon/umon.c index c8cef9c..49260ab 100644 --- a/dlls/urlmon/umon.c +++ b/dlls/urlmon/umon.c @@ -339,7 +339,7 @@ static ULONG WINAPI URLMonikerImpl_AddRe URLMonikerImpl *This = (URLMonikerImpl *)iface; ULONG refCount = InterlockedIncrement(&This->ref);
- TRACE("(%p)->(ref before=%u)\n",This, refCount - 1); + TRACE("(%p) ref=%u\n",This, refCount);
return refCount; } @@ -352,7 +352,7 @@ static ULONG WINAPI URLMonikerImpl_Relea URLMonikerImpl *This = (URLMonikerImpl *)iface; ULONG refCount = InterlockedDecrement(&This->ref);
- TRACE("(%p)->(ref before=%u)\n",This, refCount + 1); + TRACE("(%p) ref=%u\n",This, refCount);
/* destroy the object if there's no more reference on it */ if (!refCount) { @@ -1167,7 +1167,6 @@ HRESULT WINAPI CreateURLMoniker(IMoniker { URLMonikerImpl *obj; HRESULT hres; - IID iid = IID_IMoniker; LPOLESTR lefturl = NULL;
TRACE("(%p, %s, %p)\n", pmkContext, debugstr_w(szURL), ppmk); @@ -1189,7 +1188,7 @@ HRESULT WINAPI CreateURLMoniker(IMoniker hres = URLMonikerImpl_Construct(obj, lefturl, szURL); CoTaskMemFree(lefturl); if(SUCCEEDED(hres)) - hres = URLMonikerImpl_QueryInterface((IMoniker*)obj, &iid, (void**)ppmk); + hres = URLMonikerImpl_QueryInterface((IMoniker*)obj, &IID_IMoniker, (void**)ppmk); else HeapFree(GetProcessHeap(), 0, obj); return hres;