mirror of
https://github.com/reactos/reactos.git
synced 2026-06-07 16:32:28 +08:00
[NETSHELL] CNetworkConnections: SetNameOf should always return a new pidl on success.
CORE-14116
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user