|
@@ -0,0 +1,31 @@
|
|
|
+# HG changeset patch
|
|
|
+# User Bill Gianopoulos <wgianopoulos@gmail.com>
|
|
|
+# Date 1663152036 0
|
|
|
+Bug 9999999 - Fix suite bustage in nsWindowsShellService.cpp.
|
|
|
+
|
|
|
+diff --git a/suite/components/shell/nsWindowsShellService.cpp b/suite/components/shell/nsWindowsShellService.cpp
|
|
|
+--- a/suite/components/shell/nsWindowsShellService.cpp
|
|
|
++++ b/suite/components/shell/nsWindowsShellService.cpp
|
|
|
+@@ -613,19 +613,19 @@ nsWindowsShellService::SetDesktopBackgro
|
|
|
+ return rv;
|
|
|
+
|
|
|
+ nsCOMPtr<imgIContainer> container;
|
|
|
+ rv = request->GetImage(getter_AddRefs(container));
|
|
|
+ if (!container)
|
|
|
+ return NS_ERROR_FAILURE;
|
|
|
+
|
|
|
+ // get the file name from localized strings
|
|
|
+- nsCOMPtr<nsIStringBundleService> bundleService =
|
|
|
+- mozilla::services::GetStringBundleService();
|
|
|
+- NS_ENSURE_TRUE(bundleService, NS_ERROR_UNEXPECTED);
|
|
|
++ nsCOMPtr<nsIStringBundleService> bundleService(
|
|
|
++ do_GetService(NS_STRINGBUNDLE_CONTRACTID, &rv));
|
|
|
++ NS_ENSURE_SUCCESS(rv, rv);
|
|
|
+
|
|
|
+ nsCOMPtr<nsIStringBundle> shellBundle;
|
|
|
+ rv = bundleService->CreateBundle(SHELLSERVICE_PROPERTIES,
|
|
|
+ getter_AddRefs(shellBundle));
|
|
|
+ NS_ENSURE_SUCCESS(rv, rv);
|
|
|
+
|
|
|
+ // e.g. "Desktop Background.bmp"
|
|
|
+ nsAutoString fileLeafName;
|