crash if passing nsnull. need to use the proper #define r=dveditz, a=brendan

This commit is contained in:
dougt%netscape.com 1999-12-14 03:40:54 +00:00
parent b9613f52b8
commit f4053f4281

View File

@ -2140,7 +2140,7 @@ nsInstall::Alert(nsString& string)
{
nsresult res;
NS_WITH_PROXIED_SERVICE(nsIPrompt, dialog, kNetSupportDialogCID, nsnull, &res);
NS_WITH_PROXIED_SERVICE(nsIPrompt, dialog, kNetSupportDialogCID, NS_UI_THREAD_EVENTQ, &res);
if (NS_FAILED(res))
return res;
@ -2153,7 +2153,7 @@ nsInstall::Confirm(nsString& string, PRBool* aReturn)
*aReturn = PR_FALSE; /* default value */
nsresult res;
NS_WITH_PROXIED_SERVICE(nsIPrompt, dialog, kNetSupportDialogCID, nsnull, &res);
NS_WITH_PROXIED_SERVICE(nsIPrompt, dialog, kNetSupportDialogCID, NS_UI_THREAD_EVENTQ, &res);
if (NS_FAILED(res))
return res;