Bug 531174 [@ WriteBitmap], r=joe
authortimeless@mozdev.org
Sun, 13 Dec 2009 09:11:39 -0800
changeset 35665 6bd943c2c7bb5b3e909f40aff468d90260d8fde8
parent 35664 d1891791ecd22a0fa28510c508b12d9b6b9b008a
child 35666 6cae4ab0b62281e5272b2edb71b7cbb216509fb2
push id10671
push userphilringnalda@gmail.com
push dateSun, 13 Dec 2009 17:12:14 +0000
treeherdermozilla-central@6956e3df30f5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjoe
bugs531174
milestone1.9.3a1pre
Bug 531174 [@ WriteBitmap], r=joe
browser/components/shell/src/nsWindowsShellService.cpp
--- a/browser/components/shell/src/nsWindowsShellService.cpp
+++ b/browser/components/shell/src/nsWindowsShellService.cpp
@@ -599,16 +599,17 @@ nsWindowsShellService::SetDesktopBackgro
                                             PRInt32 aPosition)
 {
   nsresult rv;
 
   nsCOMPtr<imgIContainer> container;
   nsCOMPtr<nsIDOMHTMLImageElement> imgElement(do_QueryInterface(aElement));
   if (!imgElement) {
     // XXX write background loading stuff!
+    return NS_ERROR_NOT_AVAILABLE;
   } 
   else {
     nsCOMPtr<nsIImageLoadingContent> imageContent =
       do_QueryInterface(aElement, &rv);
     if (!imageContent)
       return rv;
 
     // get the image container