NS_NewLocalFile(aPath, &localFile);
if (aPath) { NS_InitXPCOM(&sServiceManager, aPath); } else { NS_InitXPCOM(&sServiceManager, nsnull); }  #ifdef HACK_AROUND_NONREENTRANT_INITXPCOM sXPCOMInitializedFlag = PR_TRUE; sXPCOMCleanupHack.mCleanOnExit = PR_TRUE; #endif
nsresult NS_InitEmbedding(const char *aPath){	// Create an object to represent the path	nsILocalFile *localFile = nsnull;	if (aPath && strlen(aPath) > 0)	{		NS_NewLocalFile(aPath, &localFile);	}    nsresult rv = NS_InitEmbedding(localFile);    NS_IF_RELEASE(localFile);    return rv;}