mirror of
https://github.com/reactos/reactos.git
synced 2024-06-27 16:31:30 +00:00
[NETSHELL] CNetworkConnections: SetNameOf should always return a new pidl on success.
CORE-14116
This commit is contained in:
parent
bcd309cb7a
commit
91119080bc
|
@ -534,6 +534,7 @@ HRESULT WINAPI CNetworkConnections::SetNameOf (
|
|||
LPCOLESTR lpName, DWORD dwFlags, PITEMID_CHILD * pPidlOut)
|
||||
{
|
||||
const VALUEStruct * val;
|
||||
HRESULT hr;
|
||||
|
||||
val = _ILGetValueStruct(pidl);
|
||||
if (!val)
|
||||
|
@ -542,7 +543,14 @@ HRESULT WINAPI CNetworkConnections::SetNameOf (
|
|||
if (!val->pItem)
|
||||
return E_FAIL;
|
||||
|
||||
return val->pItem->Rename(lpName);
|
||||
hr = val->pItem->Rename(lpName);
|
||||
if (FAILED(hr))
|
||||
return hr;
|
||||
|
||||
/* The pidl hasn't changed */
|
||||
*pPidlOut = ILClone(pidl);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT WINAPI CNetworkConnections::GetDefaultSearchGUID(GUID * pguid)
|
||||
|
|
Loading…
Reference in a new issue