diff options
author | Christian Persch <chpe+gnomebugz@stud.uni-saarland.de> | 2003-05-06 19:49:35 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <mpeseng@src.gnome.org> | 2003-05-06 19:49:35 +0800 |
commit | 468c744c0c5efde0aa7bbc179bd0bba784c908a5 (patch) | |
tree | 80c6389c8d4c85d7948e15af107589c41b4da1c4 /embed/mozilla | |
parent | 0844abeea1ba193d4c9aa9afdbd9aaddba459d17 (diff) | |
download | gsoc2013-epiphany-468c744c0c5efde0aa7bbc179bd0bba784c908a5.tar gsoc2013-epiphany-468c744c0c5efde0aa7bbc179bd0bba784c908a5.tar.gz gsoc2013-epiphany-468c744c0c5efde0aa7bbc179bd0bba784c908a5.tar.bz2 gsoc2013-epiphany-468c744c0c5efde0aa7bbc179bd0bba784c908a5.tar.lz gsoc2013-epiphany-468c744c0c5efde0aa7bbc179bd0bba784c908a5.tar.xz gsoc2013-epiphany-468c744c0c5efde0aa7bbc179bd0bba784c908a5.tar.zst gsoc2013-epiphany-468c744c0c5efde0aa7bbc179bd0bba784c908a5.zip |
Check for NULL PresContext.
2003-05-06 Christian Persch <chpe+gnomebugz@stud.uni-saarland.de>
* embed/mozilla/EphyWrapper.cpp: (EphyWrapper::SetZoomOnDocshell):
Check for NULL PresContext.
Diffstat (limited to 'embed/mozilla')
-rw-r--r-- | embed/mozilla/EphyWrapper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embed/mozilla/EphyWrapper.cpp b/embed/mozilla/EphyWrapper.cpp index b5ae3a24a..7268c4a69 100644 --- a/embed/mozilla/EphyWrapper.cpp +++ b/embed/mozilla/EphyWrapper.cpp @@ -356,7 +356,7 @@ nsresult EphyWrapper::SetZoomOnDocshell (float aZoom, nsIDocShell *DocShell) nsCOMPtr<nsIPresContext> PresContext; result = DocShell->GetPresContext (getter_AddRefs(PresContext)); - if (NS_FAILED(result)) return NS_ERROR_FAILURE; + if (NS_FAILED(result) || !PresContext) return NS_ERROR_FAILURE; nsCOMPtr<nsIDeviceContext> DeviceContext; result = PresContext->GetDeviceContext (getter_AddRefs(DeviceContext)); |