mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-04 07:40:42 +00:00
crash if passing nsnull. need to use the proper #define r=dveditz, a=brendan
This commit is contained in:
parent
b9613f52b8
commit
f4053f4281
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user