Bug 483217. Don't return an nsresult as a PRBool. r+sr=bzbarsky

This commit is contained in:
Graeme McCutcheon 2009-03-13 16:29:57 -04:00
parent 4237a9a224
commit 3003c9a317

View File

@ -598,9 +598,7 @@ nsHTMLButtonElement::SaveState()
PRBool
nsHTMLButtonElement::RestoreState(nsPresState* aState)
{
NS_ENSURE_ARG_POINTER(aState);
if (aState->IsDisabledSet()) {
if (aState && aState->IsDisabledSet()) {
SetDisabled(aState->GetDisabled());
}