mirror of
https://github.com/reactos/reactos.git
synced 2024-10-20 16:06:27 +00:00
- Fix memory leak
- Fix displaying of random characters if there is no device name svn path=/trunk/; revision=43116
This commit is contained in:
parent
4648a3e59d
commit
39b702d16e
|
@ -644,6 +644,11 @@ static HRESULT WINAPI ISF_NetConnect_fnGetDetailsOf (IShellFolder2 * iface,
|
|||
psd->str.uType = STRRET_WSTR;
|
||||
hr = SHStrDupW(buffer, &psd->str.u.pOleStr);
|
||||
}
|
||||
else
|
||||
{
|
||||
psd->str.u.cStr[0] = '\0';
|
||||
psd->str.uType = STRRET_CSTR;
|
||||
}
|
||||
break;
|
||||
case COLUMN_PHONE:
|
||||
case COLUMN_OWNER:
|
||||
|
@ -651,9 +656,8 @@ static HRESULT WINAPI ISF_NetConnect_fnGetDetailsOf (IShellFolder2 * iface,
|
|||
psd->str.uType = STRRET_CSTR;
|
||||
break;
|
||||
}
|
||||
#if 0
|
||||
|
||||
NcFreeNetconProperties(pProperties);
|
||||
#endif
|
||||
return hr;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue