The crash doesn't happen this way.

This commit is contained in:
hyatt%netscape.com 2002-04-29 21:52:10 +00:00
parent 6c8378c12b
commit a34ce9b522
4 changed files with 24 additions and 20 deletions

View File

@ -62,11 +62,6 @@ extern const char *prefContractID;
setenv("MOZILLA_FIVE_HOME", cstr, 1);
nsresult rv;
rv = NS_InitEmbedding(nsnull, nsnull);
if (NS_FAILED(rv)) {
printf("Embedding init failed.\n");
return NO;
}
nsCOMPtr<nsIProfile> profileService(do_GetService(NS_PROFILE_CONTRACTID, &rv));
if (NS_FAILED(rv))
@ -88,6 +83,12 @@ rv = NS_InitEmbedding(nsnull, nsnull);
if (NS_FAILED(rv))
return NO;
rv = NS_InitEmbedding(nsnull, nsnull);
if (NS_FAILED(rv)) {
printf("Embedding init failed.\n");
return NO;
}
[self syncMozillaPrefs];
return YES;
}

View File

@ -62,11 +62,6 @@ extern const char *prefContractID;
setenv("MOZILLA_FIVE_HOME", cstr, 1);
nsresult rv;
rv = NS_InitEmbedding(nsnull, nsnull);
if (NS_FAILED(rv)) {
printf("Embedding init failed.\n");
return NO;
}
nsCOMPtr<nsIProfile> profileService(do_GetService(NS_PROFILE_CONTRACTID, &rv));
if (NS_FAILED(rv))
@ -88,6 +83,12 @@ rv = NS_InitEmbedding(nsnull, nsnull);
if (NS_FAILED(rv))
return NO;
rv = NS_InitEmbedding(nsnull, nsnull);
if (NS_FAILED(rv)) {
printf("Embedding init failed.\n");
return NO;
}
[self syncMozillaPrefs];
return YES;
}

View File

@ -62,11 +62,6 @@ extern const char *prefContractID;
setenv("MOZILLA_FIVE_HOME", cstr, 1);
nsresult rv;
rv = NS_InitEmbedding(nsnull, nsnull);
if (NS_FAILED(rv)) {
printf("Embedding init failed.\n");
return NO;
}
nsCOMPtr<nsIProfile> profileService(do_GetService(NS_PROFILE_CONTRACTID, &rv));
if (NS_FAILED(rv))
@ -88,6 +83,12 @@ rv = NS_InitEmbedding(nsnull, nsnull);
if (NS_FAILED(rv))
return NO;
rv = NS_InitEmbedding(nsnull, nsnull);
if (NS_FAILED(rv)) {
printf("Embedding init failed.\n");
return NO;
}
[self syncMozillaPrefs];
return YES;
}

View File

@ -62,11 +62,6 @@ extern const char *prefContractID;
setenv("MOZILLA_FIVE_HOME", cstr, 1);
nsresult rv;
rv = NS_InitEmbedding(nsnull, nsnull);
if (NS_FAILED(rv)) {
printf("Embedding init failed.\n");
return NO;
}
nsCOMPtr<nsIProfile> profileService(do_GetService(NS_PROFILE_CONTRACTID, &rv));
if (NS_FAILED(rv))
@ -88,6 +83,12 @@ rv = NS_InitEmbedding(nsnull, nsnull);
if (NS_FAILED(rv))
return NO;
rv = NS_InitEmbedding(nsnull, nsnull);
if (NS_FAILED(rv)) {
printf("Embedding init failed.\n");
return NO;
}
[self syncMozillaPrefs];
return YES;
}