b=477727; fix shell service and disable migration browser component for Windows CE; r=gavin
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user