shlwapi: Fix IUnknown_AtomicRelease prototype and simplify body a bit.
This commit is contained in:
parent
076676d448
commit
55b4e4e354
|
@ -1210,7 +1210,7 @@ HRESULT WINAPI ConnectToConnectionPoint(IUnknown* lpUnkSink, REFIID riid, BOOL f
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
* @ [SHLWAPI.169]
|
* @ [SHLWAPI.169]
|
||||||
*
|
*
|
||||||
* Release an interface.
|
* Release an interface and zero a supplied pointer.
|
||||||
*
|
*
|
||||||
* PARAMS
|
* PARAMS
|
||||||
* lpUnknown [I] Object to release
|
* lpUnknown [I] Object to release
|
||||||
|
@ -1218,19 +1218,16 @@ HRESULT WINAPI ConnectToConnectionPoint(IUnknown* lpUnkSink, REFIID riid, BOOL f
|
||||||
* RETURNS
|
* RETURNS
|
||||||
* Nothing.
|
* Nothing.
|
||||||
*/
|
*/
|
||||||
DWORD WINAPI IUnknown_AtomicRelease(IUnknown ** lpUnknown)
|
void WINAPI IUnknown_AtomicRelease(IUnknown ** lpUnknown)
|
||||||
{
|
{
|
||||||
IUnknown *temp;
|
TRACE("(%p)\n", lpUnknown);
|
||||||
|
|
||||||
TRACE("(%p)\n",lpUnknown);
|
if(!lpUnknown || !*lpUnknown) return;
|
||||||
|
|
||||||
if(!lpUnknown || !*((LPDWORD)lpUnknown)) return 0;
|
|
||||||
temp = *lpUnknown;
|
|
||||||
*lpUnknown = NULL;
|
|
||||||
|
|
||||||
TRACE("doing Release\n");
|
TRACE("doing Release\n");
|
||||||
|
|
||||||
return IUnknown_Release(temp);
|
IUnknown_Release(*lpUnknown);
|
||||||
|
*lpUnknown = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
|
|
Loading…
Reference in New Issue