aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/EphyWrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'embed/mozilla/EphyWrapper.cpp')
-rw-r--r--embed/mozilla/EphyWrapper.cpp1
1 files changed, 1 insertions, 0 deletions
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<nsIDeviceContext> DeviceContext;
result = PresContext->GetDeviceContext (getter_AddRefs(DeviceContext));
+ if (NS_FAILED(result) || !DeviceContext) return NS_ERROR_FAILURE;
return DeviceContext->SetTextZoom (aZoom);
}