mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 662125: Fix nsDocShell::ConfirmRepost to initialize a PRBool before passing it through XPConnect. r=bz
This commit is contained in:
parent
8721631cfa
commit
66beef1008
@ -10676,7 +10676,9 @@ nsDocShell::ConfirmRepost(PRBool * aRepost)
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
PRInt32 buttonPressed;
|
||||
PRBool checkState;
|
||||
// The actual value here is irrelevant, but we can't pass an invalid
|
||||
// PRBool through XPConnect.
|
||||
PRBool checkState = PR_FALSE;
|
||||
rv = prompter->
|
||||
ConfirmEx(nsnull, msgString.get(),
|
||||
(nsIPrompt::BUTTON_POS_0 * nsIPrompt::BUTTON_TITLE_IS_STRING) +
|
||||
|
Loading…
Reference in New Issue
Block a user