b=477727; fix shell service and disable migration browser component for Windows CE; r=gavin

This commit is contained in:
Vladimir Vukicevic
2009-02-11 18:24:53 -08:00
parent 181556ebd1
commit bb5c1b102e
7 changed files with 48 additions and 14 deletions

View File

@@ -266,10 +266,12 @@ nsWindowsShellService::IsDefaultBrowser(PRBool aStartupCheck,
nsAutoString appLongPath(exePath);
#ifndef WINCE
// Support short path to the exe so if it is already set the user is not
// prompted to set the default browser again.
if (!::GetShortPathNameW(exePath, exePath, sizeof(exePath)))
return NS_ERROR_FAILURE;
#endif
nsAutoString appShortPath(exePath);
ToUpperCase(appShortPath);
@@ -597,7 +599,7 @@ nsWindowsShellService::SetDesktopBackground(nsIDOMElement* aElement,
::RegSetValueExW(key, L"WallpaperStyle",
0, REG_SZ, (const BYTE *)style, size);
::SystemParametersInfoW(SPI_SETDESKWALLPAPER, 0, (PVOID)path.get(),
SPIF_UPDATEINIFILE | SPIF_SENDWININICHANGE);
SPIF_UPDATEINIFILE | SPIF_SENDCHANGE);
// Close the key we opened.
::RegCloseKey(key);
}