mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
Changed call of NS_InitEmbedding.
This commit is contained in:
parent
b0ef367be6
commit
f2f2206c38
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user