Changed call of NS_InitEmbedding.

This commit is contained in:
conrad%ingress.com 2000-08-11 20:14:31 +00:00
parent b0ef367be6
commit f2f2206c38

View File

@ -728,12 +728,15 @@ HRESULT CMozillaBrowser::Initialize()
// Create an object to represent the path
if (_tcslen(szBinDirPath) > 0)
{
nsCOMPtr<nsILocalFile> binDir;
USES_CONVERSION;
nsresult res = NS_InitEmbedding(T2A(szBinDirPath));
NS_NewLocalFile(T2A(szBinDirPath), TRUE, getter_AddRefs(binDir));
nsresult res = NS_InitEmbedding(binDir, nsnull);
}
else
{
NS_InitEmbedding((const char *) nsnull);
NS_InitEmbedding(nsnull, nsnull);
}
return S_OK;