- Fix memory leak

- Fix displaying of random characters if there is no device name

svn path=/trunk/; revision=43116
This commit is contained in:
Johannes Anderwald 2009-09-22 20:09:11 +00:00
parent 4648a3e59d
commit 39b702d16e

View file

@ -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;
}