From bc36afd042c949d85f3e8aaa12566950aa57ebe8 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sat, 23 Aug 2003 19:49:56 +0000 Subject: Add extra bogosity check, ported from galeon. 2003-08-23 Christian Persch * embed/mozilla/EphyWrapper.cpp: (SetZoomOnDocshell): Add extra bogosity check, ported from galeon. --- embed/mozilla/EphyWrapper.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'embed') diff --git a/embed/mozilla/EphyWrapper.cpp b/embed/mozilla/EphyWrapper.cpp index 03514d21d..6fc76a840 100644 --- a/embed/mozilla/EphyWrapper.cpp +++ b/embed/mozilla/EphyWrapper.cpp @@ -353,6 +353,7 @@ nsresult EphyWrapper::SetZoomOnDocshell (float aZoom, nsIDocShell *DocShell) nsCOMPtr DeviceContext; result = PresContext->GetDeviceContext (getter_AddRefs(DeviceContext)); + if (NS_FAILED(result) || !DeviceContext) return NS_ERROR_FAILURE; return DeviceContext->SetTextZoom (aZoom); } -- cgit v1.2.3